public BasicAuthenticationChannel(HttpMessageChannel inner, Func<string, Tuple<string, string>> getCredentials, 
     HttpMessageChannel channel)
     : base(inner, "Basic")
 {
     _getCredentials = getCredentials;
     _channel = channel;
 }
Exemplo n.º 2
0
        protected DelegatingChannel(HttpMessageChannel innerChannel)
        {
            if (innerChannel == null)
            {
                throw new ArgumentNullException("innerChannel");
            }

            this.innerChannel = innerChannel;
        }
Exemplo n.º 3
0
        protected DelegatingChannel(HttpMessageChannel innerChannel)
        {
            if (innerChannel == null)
            {
                throw new ArgumentNullException("innerChannel");
            }

            this.innerChannel = innerChannel;
        }
 public ValidConstructorHandler(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
 }
Exemplo n.º 5
0
 public SampleMessageHandler(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
 }
Exemplo n.º 6
0
 public MockValidMessageHandler(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
 }
Exemplo n.º 7
0
 public TestHandler(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
     DisposeHandlerTests.handlerList.Add(this);
 }
Exemplo n.º 8
0
 protected override HttpMessageChannel OnCreate(HttpMessageChannel innerChannel)
 {
     return null;
 }
 protected override HttpMessageChannel OnCreate(HttpMessageChannel innerChannel)
 {
     return base.OnCreate(new AuthenticationChannel(innerChannel));
 }
 public HttpMessageInspector(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
 }
 public HttpHostConfiguration SetChannel(HttpMessageChannel channel)
 {
     this.Channel = channel;
     return this;
 }
Exemplo n.º 12
0
 public MockInvalidMessageHandler(HttpMessageChannel innerChannel, bool test)
     : base(innerChannel)
 {
 }
Exemplo n.º 13
0
 protected MessageProcessingChannel(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
 }
 protected AuthenticationChannel(HttpMessageChannel inner, string scheme)
     : base(inner)
 {
     Scheme = scheme;
 }
Exemplo n.º 15
0
			protected override HttpMessageChannel OnCreate(HttpMessageChannel innerChannel)
			{
				HttpMessageChannel channel = new HttpQueryMessageHandler(innerChannel, this.queryLimit);

				if (this.innerFactory != null)
					channel = this.innerFactory.Create(channel);

				return channel;
			}
Exemplo n.º 16
0
				public HttpQueryMessageHandler(HttpMessageChannel inner, int queryLimit)
					: base(inner)
				{
					this.queryLimit = queryLimit;
				}
Exemplo n.º 17
0
        /// <summary>
        /// Creates an instance of an <see cref="HttpMessageChannel"/> using the HTTP message handlers
        /// provided in the constructor.
        /// </summary>
        /// <param name="innerChannel">The inner channel represents the destination of the HTTP message channel.</param>
        /// <returns>The HTTP message channel.</returns>
        public HttpMessageChannel Create(HttpMessageChannel innerChannel)
        {
            if (innerChannel == null)
            {
                throw Fx.Exception.ArgumentNull("innerChannel");
            }

            return this.OnCreate(innerChannel);
        }
Exemplo n.º 18
0
 public TestHandler(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
     throw new Exception("Handler constructor failure");
 }
Exemplo n.º 19
0
        /// <summary>
        /// Creates an instance of an <see cref="HttpMessageChannel"/> using the HTTP message handlers
        /// provided in the constructor.
        /// </summary>
        /// <param name="innerChannel">The inner channel represents the destination of the HTTP message channel.</param>
        /// <returns>The HTTP message channel.</returns>
        protected virtual HttpMessageChannel OnCreate(HttpMessageChannel innerChannel)
        {
            if (innerChannel == null)
            {
                throw Fx.Exception.ArgumentNull("innerChannel");
            }

            HttpMessageChannel pipeline = innerChannel;
            try
            {
                foreach (var ctor in this.handlerCtors)
                {
                    pipeline = (DelegatingChannel)ctor.Invoke(new object[] { pipeline });
                }
            }
            catch (TargetInvocationException tie)
            {
                Fx.Exception.AsError(tie.InnerException);
                throw;
            }

            return pipeline;
        }
Exemplo n.º 20
0
 public TestHandler(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
 }
Exemplo n.º 21
0
		public TracingChannel(HttpMessageChannel handler)
			: base(handler)
		{
		}
Exemplo n.º 22
0
 protected override HttpMessageChannel OnCreate(HttpMessageChannel innerChannel)
 {
     return this.create(innerChannel);
 }
 public AuthenticationChannel(HttpMessageChannel innerChannel)
     : this(innerChannel, new BasicAuthenticator())
 {
 }
 public AuthenticationChannel(HttpMessageChannel innerChannel, IAuthenticator authenticator)
     : base(innerChannel)
 {
     this.authenticator = authenticator;
 }
 public UriFormatExtensionMessageChannel(HttpMessageChannel handler)
     :base(handler)
 {
 }
Exemplo n.º 26
0
 public LoggingChannel(HttpMessageChannel handler)
     : base(handler)
 {
 }
Exemplo n.º 27
0
 public DummyHandler(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
 }
 public PostStatusCodeMessageHandler(HttpMessageChannel innerChannel)
     : base(innerChannel)
 {
 }
 public InvalidConstructorHandler(HttpMessageChannel innerChannel, bool test)
     : base(innerChannel)
 {
 }