Example #1
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);
 }
        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;
        }
        public void Prepare(ChannelListenerBase listener)
        {
            this.listener = listener;

            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");
            }
        }
Example #4
0
 public TcpReplyChannel(ChannelListenerBase listener, TcpChannelInfo info, TcpClient client)
     : base(listener)
 {
     this.client = client;
     this.info   = info;
 }
 public ReplyChannelBase(ChannelListenerBase listener)
     : base(listener)
 {
     this.listener = listener;
 }
 public InternalReplyChannelBase(ChannelListenerBase listener)
     : base(listener)
 {
     local_address = new EndpointAddress(listener.Uri);
 }
 public DuplexChannelBase(ChannelListenerBase listener) : base(listener)
 {
     channel_listener_base = listener;
     local_address         = new EndpointAddress(listener.Uri);
     SetupDelegates();
 }
Example #8
0
 public InputChannelBase(ChannelListenerBase listener)
     : base(listener)
 {
     this.channel_listener = listener;
 }
Example #9
0
 public NamedPipeReplyChannel(ChannelListenerBase listener, MessageEncoder encoder, NamedPipeServerStream server)
     : base(listener)
 {
     this.server  = server;
     this.Encoder = encoder;
 }