public SecurityDuplexSessionChannel (ChannelFactoryBase factory, IChannel innerChannel, EndpointAddress remoteAddress, Uri via, InitiatorMessageSecurityBindingSupport security)
			: base (factory, remoteAddress, via)
		{
			this.channel = innerChannel;
			session = new SecurityDuplexSession (this);
			InitializeSecurityFunctionality (security);
		}
 public SecurityDuplexSessionChannel(ChannelFactoryBase factory, IChannel innerChannel, EndpointAddress remoteAddress, Uri via, InitiatorMessageSecurityBindingSupport security)
     : base(factory, remoteAddress, via)
 {
     this.channel = innerChannel;
     session      = new SecurityDuplexSession(this);
     InitializeSecurityFunctionality(security);
 }
示例#3
0
		public OutputChannelBase (ChannelFactoryBase factory, EndpointAddress remoteAddress, Uri via)
			: base (factory)
		{
			this.channel_factory = factory;
			RemoteAddress = remoteAddress;
			Via = via;
		}
示例#4
0
		public TcpDuplexSessionChannel (ChannelFactoryBase factory, TcpChannelInfo info, EndpointAddress address, Uri via)
			: base (factory, address, via)
		{
			is_service_side = false;
			this.info = info;

			// make sure to acquire TcpClient here.
			int explicitPort = Via.Port;
			client = new TcpClient (Via.Host, explicitPort <= 0 ? TcpTransportBindingElement.DefaultPort : explicitPort);
			counterpart_address = GetEndpointAddressFromTcpClient (client);
		}
        public TcpDuplexSessionChannel(ChannelFactoryBase factory, TcpChannelInfo info, EndpointAddress address, Uri via)
            : base(factory, address, via)
        {
            is_service_side = false;
            this.info       = info;

            // make sure to acquire TcpClient here.
            int explicitPort = Via.Port;

            client = new TcpClient(Via.Host, explicitPort <= 0 ? TcpTransportBindingElement.DefaultPort : explicitPort);
            counterpart_address = GetEndpointAddressFromTcpClient(client);
        }
示例#6
0
        public void Prepare(ChannelFactoryBase factory, EndpointAddress address)
        {
            this.factory    = factory;
            this.message_to = address;

            PrepareAuthenticator();

            // This check is almost extra, though it is needed
            // to check correct signing token existence.
            if (EncryptionToken == null)
            {
                throw new Exception("INTERNAL ERROR");
            }
        }
示例#7
0
        protected override void ReleaseCore()
        {
            this.factory    = null;
            this.message_to = null;

            IDisposable disposable = signing_token as IDisposable;

            if (disposable != null)
            {
                disposable.Dispose();
            }
            signing_token = null;

            disposable = encryption_token as IDisposable;
            if (disposable != null)
            {
                disposable.Dispose();
            }
            encryption_token = null;
        }
示例#8
0
		public OutputChannelBase (ChannelFactoryBase factory)
			: base (factory)
		{
			this.channel_factory = factory;
		}
示例#9
0
 public RequestChannelBase(ChannelFactoryBase factory)
     : base(factory)
 {
     this.channel_factory = factory;
 }
示例#10
0
 public DebugRequestChannel(ChannelFactoryBase source, IRequestChannel inner)
     : base(source)
 {
     this.source = source;
     this.inner  = inner;
 }
		protected override void ReleaseCore ()
		{
			this.factory = null;
			this.message_to = null;

			IDisposable disposable = signing_token as IDisposable;
			if (disposable != null)
				disposable.Dispose ();
			signing_token = null;

			disposable = encryption_token as IDisposable;
			if (disposable != null)
				disposable.Dispose ();
			encryption_token = null;
		}
		public void Prepare (ChannelFactoryBase factory, EndpointAddress address)
		{
			this.factory = factory;
			this.message_to = address;

			PrepareAuthenticator ();

			// This check is almost extra, though it is needed
			// to check correct signing token existence.
			if (EncryptionToken == null)
				throw new Exception ("INTERNAL ERROR");
		}
示例#13
0
 public TcpRequestChannel(ChannelFactoryBase factory, TcpChannelInfo info, EndpointAddress address, Uri via)
     : base(factory, address, via)
 {
     this.info = info;
 }
示例#14
0
		public TcpRequestChannel (ChannelFactoryBase factory, TcpChannelInfo info, EndpointAddress address, Uri via)
			: base (factory, address, via)
		{
			this.info = info;
		}
 public OutputChannelBase(ChannelFactoryBase factory)
     : base(factory)
 {
     this.channel_factory = factory;
 }
		public NamedPipeRequestChannel (ChannelFactoryBase factory, MessageEncoder encoder, EndpointAddress address, Uri via)
			: base (factory, address, via)
		{
			this.Encoder = encoder;
		}
示例#17
0
		public RequestChannelBase (ChannelFactoryBase factory)
			: base (factory)
		{
			this.channel_factory = factory;
		}