Esempio n. 1
0
 /// <summary>
 /// Stops the journaler; derived classes may override this method to perform
 /// additional logic when stopping. The registration key controls the journaler's
 /// registration with the underlying IEventListener. At the time of the call
 /// the registration is suspended (journaler is no longer receiving LWES events).
 /// It is the responsibility of the derived class to either call the base-class
 /// PerformStop method or cancel the registration key. The journaler will hold
 /// the registration key indefinitely if it is not canceled.
 /// </summary>
 /// <param name="registrationKey"></param>
 /// <returns></returns>
 protected virtual bool PerformStop(ISinkRegistrationKey registrationKey)
 {
     if (registrationKey == null) throw new ArgumentNullException("registrationKey");
     registrationKey.Cancel();
     return true;
 }