Exemple #1
0
 public void ReceiveData(string data)
 {
     ReceiveDataInvoked.Set();
     if (data == ScenarioTestHelpers.LastMessage)
     {
         ReceiveDataCompleted.Set();
     }
 }
Exemple #2
0
    protected virtual void Dispose(bool disposing)
    {
        if (_disposed)
        {
            return;
        }

        if (disposing)
        {
            LogReceived.Dispose();
            ReceiveDataInvoked.Dispose();
            ReceiveDataCompleted.Dispose();
            ReceiveStreamInvoked.Dispose();
            ReceiveStreamCompleted.Dispose();
        }

        _disposed = true;
    }