Пример #1
0
        public IpcServerChannel(string name, string portName)
        {
            _portName = portName;
            _path     = portName = BuildPathFromPortName(portName);

            _innerChannel = Activator.CreateInstance(UnixChannelLoader.LoadServerChannel(), new object [] { name, portName });
        }
Пример #2
0
        public IpcServerChannel(IDictionary properties,
                                IServerChannelSinkProvider serverSinkProvider)
        {
            properties = MapProperties(properties);
            if (properties != null)
            {
                _portName = properties ["portName"] as string;
                _path     = properties ["path"] as string;
            }

            _innerChannel = Activator.CreateInstance(UnixChannelLoader.LoadServerChannel(), new object [] { properties, serverSinkProvider });
        }