/// <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);
        }
예제 #2
0
 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));
        }
예제 #4
0
 public WcfIdentityForwardingProxy(IForwardingContext forwardingContext, IWcfChannelFactoryProvider wcfChannelFactoryProvider, string endpointName = null)
     : base(wcfChannelFactoryProvider, endpointName)
 {
     _forwardingContext = forwardingContext;
 }