Пример #1
0
 /// <summary>
 /// Invoked whenever the basic subscription has been destroyed. The client can have confidence that
 /// no further messages will be placed on the queue for this subscription.
 /// </summary>
 /// <param name="subscription">
 /// The basic subscription.
 /// </param>
 /// <param name="closure">
 /// The closure provided to the createBasic function.
 /// </param>
 void MamaBasicSubscriptionCallback.onDestroy(MamaBasicSubscription subscription, object closure)
 {
     if (mCallback != null)
     {
         mCallback.onDestroy((MamaSubscription)subscription);
     }
 }
Пример #2
0
 /// <summary>
 /// This function will invoke the destroy callback on the user supplied callback implementation.
 /// </summary>
 internal override void InvokeDestroy()
 {
     if (null != mCallback)
     {
         // Invoke the onDestroy
         mCallback.onDestroy(mSubscription);
     }
 }