/// <summary>
        /// Deactivate an active subscription.
        /// The onDestroy callback will be invoked whenever the subscription has been fully deactivated.
        /// </summary>
        public void deactivate()
        {
            // Verify that the native subscription has been allocated
            EnsurePeerCreated();

            // Call the native layer
            CheckResultCode(SubscriptionNativeMethods.mamaSubscription_deactivate(NativeHandle));
        }