/// <summary> /// If this flag is set then the subscription will attempt to recover from a /// sequence number gap. /// </summary> /// <param name="recover"> /// True to attempt recovery. /// </param> public void setRecoverGaps(bool recover) { // Verify that the native subscription has been allocated EnsurePeerCreated(); // Convert the boolean argument into an integer for the native call int recoverGaps = recover ? 1 : 0; // Call the native layer to set the flag CheckResultCode(SubscriptionNativeMethods.mamaSubscription_setRecoverGaps(NativeHandle, recoverGaps)); }