コード例 #1
0
    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);
    }
コード例 #2
0
    protected override Task ForwardUnsubscribe(Subscriber subscriber, string publisherEndpoint, string messageType, IRawEndpoint dispatcher)
    {
        var type = GetType(messageType);

        return(subscriptionManager.Unsubscribe(type, new ContextBag()));
    }
コード例 #3
0
    protected override async Task <bool> Terminate(ForwardUnsubscribeContext context)
    {
        await subscriptionManager.Unsubscribe(context.MessageRuntimeType, context).ConfigureAwait(false);

        return(true);
    }