/// <summary> /// Delay the message. If at least one <see cref="InterceptorAgent"/> returns this action, the message will be published only after all <see cref="InterceptionDelayToken"/>s are released. /// </summary> /// <param name="delayToken">The delay token with which to release the message for sending.</param> /// <remarks> /// This action cannot be mixed with the <see cref="DoNotPublish"/> action. This will lead to an exception message. /// </remarks> public static InterceptionAction Delay(out InterceptionDelayToken delayToken) { delayToken = new InterceptionDelayToken(); return(new InterceptionAction(delayToken)); }
private InterceptionAction(InterceptionDelayToken delayToken) { DelayToken = delayToken; Result = InterceptionResult.Delay; }