CleanupCallback() private method

This is called by a timer, to check for needed cleanup of idle pooled streams

private CleanupCallback ( ) : void
return void
示例#1
0
        private static void CleanupCallbackWrapper(TimerThread.Timer timer, int timeNoticed, object context)
        {
            ConnectionPool pool = (ConnectionPool)context;

            try
            {
                pool.CleanupCallback();
            }
            finally
            {
                pool.m_CleanupQueue.CreateTimer(s_CleanupCallback, context);
            }
        }