public SecurityDuplexSessionChannel(ChannelListenerBase listener, IChannel innerChannel, RecipientMessageSecurityBindingSupport security)
     : base(listener)
 {
     this.channel = innerChannel;
     session      = new SecurityDuplexSession(this);
     InitializeSecurityFunctionality(security);
 }
Пример #2
0
		public TcpDuplexSessionChannel (ChannelListenerBase listener, TcpChannelInfo info, TcpClient client)
			: base (listener)
		{
			is_service_side = true;
			this.client = client;
			this.info = info;
			counterpart_address = GetEndpointAddressFromTcpClient (client);
		}
 public TcpDuplexSessionChannel(ChannelListenerBase listener, TcpChannelInfo info, TcpClient client)
     : base(listener)
 {
     is_service_side     = true;
     this.client         = client;
     this.info           = info;
     counterpart_address = GetEndpointAddressFromTcpClient(client);
 }
Пример #4
0
        protected override void ReleaseCore()
        {
            this.listener = 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;
        }
Пример #5
0
        // FIXME: this is invoked inconsistently between SecurityReplyChannel and SecurityDuplexSessionChannel on when to do it.
        public void Prepare(ChannelListenerBase listener, Uri listenUri)
        {
            this.listener   = listener;
            this.listen_uri = listenUri;

            PrepareAuthenticator();

            // This check is almost extra, though it is needed
            // to check correct signing token existence.
            //
            // Not sure if it is limited to this condition, but
            // Ssl parameters do not support token provider and
            // still do not fail. X509 parameters do fail.
            //
            // FIXME: as AsymmetricSecurityBindingElementTest
            // .ServiceRecipientHasNoKeys() implies, it should be
            // the recipient's parameters that is used. However
            // such changes will break some of existing tests...
            if (InitiatorParameters.InternalHasAsymmetricKey &&
                EncryptionToken == null)
            {
                throw new Exception("INTERNAL ERROR");
            }
        }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NmsInputChannel"/> class.
 /// </summary>
 /// <param name="factory">The factory that was used to create the channel.</param>
 /// <param name="localAddress">The local address of the channel.</param>
 internal NmsInputChannel(ChannelListenerBase factory, EndpointAddress localAddress)
     : base(factory, localAddress)
 {
 }
		public TcpReplyChannel (ChannelListenerBase listener, TcpChannelInfo info, TcpClient client)
			: base (listener)
		{
			this.client = client;
			this.info = info;
		}
		protected override void ReleaseCore ()
		{
			this.listener = 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;
		}
		// FIXME: this is invoked inconsistently between SecurityReplyChannel and SecurityDuplexSessionChannel on when to do it.
		public void Prepare (ChannelListenerBase listener, Uri listenUri)
		{
			this.listener = listener;
			this.listen_uri = listenUri;

			PrepareAuthenticator ();

			// This check is almost extra, though it is needed
			// to check correct signing token existence.
			//
			// Not sure if it is limited to this condition, but
			// Ssl parameters do not support token provider and
			// still do not fail. X509 parameters do fail.
			//
			// FIXME: as AsymmetricSecurityBindingElementTest
			// .ServiceRecipientHasNoKeys() implies, it should be
			// the recipient's parameters that is used. However
			// such changes will break some of existing tests...
			if (InitiatorParameters.InternalHasAsymmetricKey &&
			    EncryptionToken == null)
				throw new Exception ("INTERNAL ERROR");
		}
 internal InputSessionChannel(ChannelListenerBase factory, EndpointAddress localAddress)
     : base(factory, localAddress)
 {
 }
Пример #11
0
		public ReplyChannelBase (ChannelListenerBase listener)
			: base (listener)
		{
			this.channel_listener = listener;
		}
Пример #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NmsInputQueueChannelBase&lt;T&gt;"/> class.
 /// </summary>
 /// <param name="factory">The factory that was used to create the channel.</param>
 /// <param name="localAddress">The local address of the channel.</param>
 public NmsInputQueueChannelBase(ChannelListenerBase factory, EndpointAddress localAddress)
     : base(factory)
 {
     _localAddress = localAddress;
     _messageQueue = new InputQueue <T>();
 }
Пример #13
0
 public TcpReplyChannel(ChannelListenerBase listener, TcpChannelInfo info, TcpClient client)
     : base(listener)
 {
     this.client = client;
     this.info   = info;
 }
Пример #14
0
 internal ReplySessionChannel(ChannelListenerBase factory, EndpointAddress localAddress)
     : base(factory, localAddress)
 {
 }
Пример #15
0
		public SecurityDuplexSessionChannel (ChannelListenerBase listener, IChannel innerChannel, RecipientMessageSecurityBindingSupport security)
			: base (listener)
		{
			this.channel = innerChannel;
			session = new SecurityDuplexSession (this);
			InitializeSecurityFunctionality (security);
		}
Пример #16
0
		public NamedPipeReplyChannel (ChannelListenerBase listener, MessageEncoder encoder, NamedPipeServerStream server)
			: base (listener)
		{
			this.server = server;
			this.Encoder = encoder;
		}
 public ReplyChannelBase(ChannelListenerBase listener)
     : base(listener)
 {
     this.channel_listener = listener;
 }
Пример #18
0
		public InputChannelBase (ChannelListenerBase listener)
			: base (listener)
		{
			this.channel_listener = listener;
		}