public WcfRemotingInterceptor(WcfClientExtension clients, IWcfChannelHolder channelHolder)
		{
			if (channelHolder == null)
			{
				throw new ArgumentException("The given Proxy is not valid WCF dynamic proxy.");
			}

			this.channelHolder = channelHolder;
			pipeline = CreateChannelPipeline(clients);
		}
예제 #2
0
        public WcfRemotingInterceptor(WcfClientExtension clients, IWcfChannelHolder channelHolder)
        {
            if (channelHolder == null)
            {
                throw new ArgumentException("The given Proxy is not valid WCF dynamic proxy.");
            }

            this.channelHolder = channelHolder;
            pipeline           = CreateChannelPipeline(clients);
        }
예제 #3
0
        private IWcfPolicy[] CreateChannelPipeline(WcfClientExtension clients)
        {
            var policies = channelHolder.ChannelBurden.Dependencies.OfType <IWcfPolicy>()
                           .OrderBy(policy => policy.ExecutionOrder).ToArray();

            if (policies.Length == 0 && clients.DefaultChannelPolicy != null)
            {
                policies = clients.DefaultChannelPolicy;
            }

            return(policies);
        }
		private IWcfPolicy[] CreateChannelPipeline(WcfClientExtension clients)
		{
			var policies = channelHolder.ChannelBurden.Dependencies.OfType<IWcfPolicy>()
				.OrderBy(policy => policy.ExecutionOrder).ToArray();

			if (policies.Length == 0 && clients.DefaultChannelPolicy != null)
			{
				policies = clients.DefaultChannelPolicy;
			}

			return policies;
		}
예제 #5
0
 public WcfProxyFactory(ProxyGenerator generator, WcfClientExtension clients)
 {
     this.generator         = generator;
     this.clients           = clients;
     wcfProxyGenerationHook = new WcfProxyGenerationHook(null);
 }
예제 #6
0
		public WcfFacility()
		{
			clientExtension = new WcfClientExtension();
			serviceExtension = new WcfServiceExtension();
		}
예제 #7
0
 public WcfRemotingAsyncInterceptor(AsyncType asyncType, WcfClientExtension clients, IWcfChannelHolder channelHolder)
     : base(clients, channelHolder)
 {
     this.asyncType = asyncType;
 }
예제 #8
0
		public WcfProxyFactory(ProxyGenerator generator, WcfClientExtension clients)
		{
			this.generator = generator;
			this.clients = clients;
			wcfProxyGenerationHook = new WcfProxyGenerationHook(null);
		}
		public WcfRemotingInterceptor(WcfClientExtension clients, IWcfChannelHolder channelHolder)
		{
			pipeline = CreateChannelPipeline(clients, channelHolder);
		}
		public WcfRemotingInterceptor(WcfClientExtension clients)
		{
			this.clients = clients;
		}
		public WcfCommunicationDecomissionConcern(WcfClientExtension clients)
		{
			this.clients = clients;
		}
 public WcfRemotingInterceptor(WcfClientExtension clients, IWcfChannelHolder channelHolder)
 {
     pipeline = CreateChannelPipeline(clients, channelHolder);
 }