System.Net.LazyAsyncResult.WorkerThreadComplete C# (CSharp) Method

WorkerThreadComplete() private static method

private static WorkerThreadComplete ( object state ) : void
state object
return void
        private static void WorkerThreadComplete(object state)
        {
            Debug.Assert(state is LazyAsyncResult);
            LazyAsyncResult thisPtr = (LazyAsyncResult)state;

            try
            {
                thisPtr._asyncCallback(thisPtr);
            }
            finally
            {
                thisPtr.Cleanup();
            }
        }