/// <summary> /// Creates a <see cref="IRoutingContext" /> based on the current context. /// </summary> public static IRoutingContext CreateRoutingContext(this StageConnector<IForwardingContext, IRoutingContext> stageConnector, OutgoingMessage outgoingMessage, RoutingStrategy routingStrategy, IForwardingContext sourceContext) { Guard.AgainstNull(nameof(outgoingMessage), outgoingMessage); Guard.AgainstNull(nameof(routingStrategy), routingStrategy); Guard.AgainstNull(nameof(sourceContext), sourceContext); return new RoutingContext(outgoingMessage, routingStrategy, sourceContext); }
public WcfAspnetIdentityForwardingProxyFactory(IForwardingContext forwardingContext, IWcfChannelFactoryProvider channelFactoryProvider, string endpointName = null) : base(forwardingContext, channelFactoryProvider, endpointName) { }
/// <summary> /// Creates a <see cref="IRoutingContext" /> based on the current context. /// </summary> public static IRoutingContext CreateRoutingContext(this StageConnector <IForwardingContext, IRoutingContext> stageConnector, OutgoingMessage outgoingMessage, RoutingStrategy routingStrategy, IForwardingContext sourceContext) { Guard.AgainstNull(nameof(outgoingMessage), outgoingMessage); Guard.AgainstNull(nameof(routingStrategy), routingStrategy); Guard.AgainstNull(nameof(sourceContext), sourceContext); return(new RoutingContext(outgoingMessage, routingStrategy, sourceContext)); }
public WcfIdentityForwardingProxy(IForwardingContext forwardingContext, IWcfChannelFactoryProvider wcfChannelFactoryProvider, string endpointName = null) : base(wcfChannelFactoryProvider, endpointName) { _forwardingContext = forwardingContext; }