Source/NFX.Wave/WorkContext.cs
/// <summary>
/// Warning: if overridden, must call base otherwise semaphore will not get released
/// </summary>
if overridden, must call base otherwise semaphore will not get released
if overridden must call base otherwise semaphore will not get released
protected override void Destructor()
      {
        if (m_Server.m_InstrumentationEnabled)
        {
          Interlocked.Increment(ref m_Server.m_stat_WorkContextDctor);
          if (m_Aborted) Interlocked.Increment(ref m_Server.m_stat_WorkContextAborted);
          if (m_Handled) Interlocked.Increment(ref m_Server.m_stat_WorkContextHandled);
          if (m_NoDefaultAutoClose) Interlocked.Increment(ref m_Server.m_stat_WorkContextNoDefaultClose);
        }
        ApplicationModel.ExecutionContext.__SetThreadLevelContext(null, null, null);
        ReleaseWorkSemaphore();
        m_Response.Dispose();
      }
protected override void Destructor ( ) { if ( m_Server . m_InstrumentationEnabled ) { Interlocked . Increment ( ref m_Server . m_stat_WorkContextDctor ) ; if ( m_Aborted ) Interlocked . Increment ( ref m_Server . m_stat_WorkContextAborted ) ; if ( m_Handled ) Interlocked . Increment ( ref m_Server . m_stat_WorkContextHandled ) ; if ( m_NoDefaultAutoClose ) Interlocked . Increment ( ref m_Server . m_stat_WorkContextNoDefaultClose ) ; } ApplicationModel . ExecutionContext . __SetThreadLevelContext ( null , null , null ) ; ReleaseWorkSemaphore ( ) ; m_Response . Dispose ( ) ; }
Warning: if overridden, must call base otherwise semaphore will not get released
Warning : if overridden must call base otherwise semaphore will not get released