Exemplo n.º 1
0
 public PipeChannel(
     IDictionary properties,
     IClientChannelSinkProvider clientProviderChain,
     IServerChannelSinkProvider serverProviderChain
     )
 {
     _clientChannel = new PipeClientChannel(properties, clientProviderChain);
     _serverChannel = new PipeServerChannel(properties, serverProviderChain);
 }
Exemplo n.º 2
0
        public PipeRemotingServer(string channelName, string serviceUri, int port, object remotingObject)
        {
            IDictionary props = new Hashtable();
            SecurityIdentifier sid = new SecurityIdentifier(WellKnownSidType.BuiltinUsersSid, null);
            string usersGroup = sid.Translate(typeof(NTAccount)).ToString();

            props["pipe"] = serviceUri;

            this.remotingObject = remotingObject;
            SecureServerChannelSinkProvider sSink = GetSecureServerSink();
            pipeChannel = new PipeServerChannel(props, sSink);

            RemotingConfiguration.CustomErrorsMode = CustomErrorsModes.Off;

            RemotingConfiguration.RegisterWellKnownServiceType(remotingObject.GetType(), serviceUri, WellKnownObjectMode.Singleton);
        }
Exemplo n.º 3
0
        public PipeRemotingServer(string channelName, string serviceUri, int port, object remotingObject)
        {
            IDictionary        props      = new Hashtable();
            SecurityIdentifier sid        = new SecurityIdentifier(WellKnownSidType.BuiltinUsersSid, null);
            string             usersGroup = sid.Translate(typeof(NTAccount)).ToString();

            props["pipe"] = serviceUri;

            this.remotingObject = remotingObject;
            SecureServerChannelSinkProvider sSink = GetSecureServerSink();

            pipeChannel = new PipeServerChannel(props, sSink);

            RemotingConfiguration.CustomErrorsMode = CustomErrorsModes.Off;

            RemotingConfiguration.RegisterWellKnownServiceType(remotingObject.GetType(), serviceUri, WellKnownObjectMode.Singleton);
        }
Exemplo n.º 4
0
        public PipeRemotingServer(string channelName, string serviceUri, int port, MarshalByRefObject remotingObject)
        {
            IDictionary        props      = new Hashtable();
            SecurityIdentifier sid        = new SecurityIdentifier(WellKnownSidType.BuiltinUsersSid, null);
            string             usersGroup = sid.Translate(typeof(NTAccount)).ToString();

            props["pipe"] = serviceUri;

            this.remotingObject = remotingObject;

            SecureServerChannelSinkProvider sSink = GetSecureServerSink();

            pipeChannel = new PipeServerChannel(props, sSink);


            if (RemotingConfiguration.CustomErrorsMode != CustomErrorsModes.Off)
            {
                RemotingConfiguration.CustomErrorsMode = CustomErrorsModes.Off;
            }

            RemotingServices.Marshal(remotingObject, serviceUri);
        }
Exemplo n.º 5
0
 public PipeChannel(
             IDictionary properties, 
             IClientChannelSinkProvider clientProviderChain,
             IServerChannelSinkProvider serverProviderChain
         )
 {
     _clientChannel = new PipeClientChannel(properties, clientProviderChain);
       _serverChannel = new PipeServerChannel(properties, serverProviderChain);
 }
Exemplo n.º 6
0
 public PipeChannel(String name)
     : this()
 {
     _serverChannel = new PipeServerChannel(name);
 }
Exemplo n.º 7
0
        public PipeRemotingServer(string channelName, string serviceUri, int port, MarshalByRefObject remotingObject)
        {
            IDictionary props = new Hashtable();
            SecurityIdentifier sid = new SecurityIdentifier(WellKnownSidType.BuiltinUsersSid, null);
            string usersGroup = sid.Translate(typeof(NTAccount)).ToString();

            props["pipe"] = serviceUri;

            this.remotingObject = remotingObject;

            SecureServerChannelSinkProvider sSink = GetSecureServerSink();

            pipeChannel = new PipeServerChannel(props, sSink);

            if (RemotingConfiguration.CustomErrorsMode != CustomErrorsModes.Off)
            {
                RemotingConfiguration.CustomErrorsMode = CustomErrorsModes.Off;
            }

            RemotingServices.Marshal(remotingObject, serviceUri);
        }
Exemplo n.º 8
0
 public PipeChannel(String name) : this()
 {
     _serverChannel = new PipeServerChannel(name);
 }
Exemplo n.º 9
0
 internal PipeChannelData(PipeServerChannel chan)
 {
     m_pipeName = chan.PipeName;
     //TODO:  machine-name, etc.
 }
 internal PipeChannelData(PipeServerChannel chan)
 {
     m_pipeName = chan.PipeName;
     //TODO:  machine-name, etc.
 }