NServiceBus.RoutingOptionExtensions.GetDestination C# (CSharp) Method

GetDestination() public static method

Returns the destination configured by SetDestination(ReplyOptions, string).
public static GetDestination ( this options ) : string
options this Option being extended.
return string
        public static string GetDestination(this ReplyOptions options)
        {
            Guard.AgainstNull(nameof(options), options);

            UnicastReplyRouterConnector.State state;
            options.Context.TryGet(out state);
            return state?.ExplicitDestination;
        }