Esempio n. 1
0
 public PipeChannel(
     IDictionary properties,
     IClientChannelSinkProvider clientProviderChain,
     IServerChannelSinkProvider serverProviderChain
     )
 {
     _clientChannel = new PipeClientChannel(properties, clientProviderChain);
     _serverChannel = new PipeServerChannel(properties, serverProviderChain);
 }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }
Esempio n. 5
0
 public PipeChannel(
             IDictionary properties, 
             IClientChannelSinkProvider clientProviderChain,
             IServerChannelSinkProvider serverProviderChain
         )
 {
     _clientChannel = new PipeClientChannel(properties, clientProviderChain);
       _serverChannel = new PipeServerChannel(properties, serverProviderChain);
 }
Esempio n. 6
0
 public PipeChannel(String name)
     : this()
 {
     _serverChannel = new PipeServerChannel(name);
 }
Esempio 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);
        }
Esempio n. 8
0
 public PipeChannel(String name) : this()
 {
     _serverChannel = new PipeServerChannel(name);
 }
Esempio 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.
 }