public override async Task ForwardUnsubscribe(Subscriber subscriber, string publisherEndpoint, string messageType, IRawEndpoint dispatcher, InterBridgeRoutingSettings forwarding) { var type = typeGenerator.GetType(messageType); await subscriptionManager.Unsubscribe(type, new ContextBag()).ConfigureAwait(false); await Send(subscriber, publisherEndpoint, messageType, MessageIntentEnum.Unsubscribe, dispatcher, forwarding).ConfigureAwait(false); }
protected override Task ForwardUnsubscribe(Subscriber subscriber, string publisherEndpoint, string messageType, IRawEndpoint dispatcher) { var type = GetType(messageType); return(subscriptionManager.Unsubscribe(type, new ContextBag())); }
protected override async Task <bool> Terminate(ForwardUnsubscribeContext context) { await subscriptionManager.Unsubscribe(context.MessageRuntimeType, context).ConfigureAwait(false); return(true); }