System.IO.Pipes.PipeStream.InitializeAsyncHandle C# (CSharp) Méthode

InitializeAsyncHandle() private méthode

Initializes the handle to be used asynchronously.
private InitializeAsyncHandle ( SafePipeHandle handle ) : void
handle Microsoft.Win32.SafeHandles.SafePipeHandle The handle.
Résultat void
        private void InitializeAsyncHandle(SafePipeHandle handle)
        {
            // If the handle is of async type, bind the handle to the ThreadPool so that we can use 
            // the async operations (it's needed so that our native callbacks get called).
            _threadPoolBinding = ThreadPoolBoundHandle.BindHandle(handle);
        }