System.Net.TimerThread.Queue.CreateTimer C# (CSharp) Метод

CreateTimer() приватный Метод

Creates and returns a handle to a new polled timer.

private CreateTimer ( ) : Timer
Результат System.Threading.Timer
            internal Timer CreateTimer()
            {
                return CreateTimer(null, null);
            }

Same methods

TimerThread.Queue::CreateTimer ( Callback callback, object context ) : Timer

Usage Example

 /// <devdoc>
 ///    <para>Aborts the queued requests to the pool</para>
 /// </devdoc>
 internal void Abort()
 {
     if (m_ResError == null)
     {
         m_ResError = new WebException(
             NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled),
             WebExceptionStatus.RequestCanceled);
     }
     ErrorEvent.Set();
     m_ErrorOccured = true;
     m_ErrorTimer   = s_CancelErrorQueue.CreateTimer(s_CancelErrorCallback, this);
 }
All Usage Examples Of System.Net.TimerThread.Queue::CreateTimer
TimerThread.Queue