Пример #1
0
        void Init (IDictionary properties, IClientChannelSinkProvider clientSink, IServerChannelSinkProvider serverSink)
        {
            _clientChannel = new UnixClientChannel (properties,clientSink);

            if(properties["path"] != null)
                _serverChannel = new UnixServerChannel(properties, serverSink);
            
            object val = properties ["name"];
            if (val != null) _name = val as string;
            
            val = properties ["priority"];
            if (val != null) _priority = Convert.ToInt32 (val);
        }
Пример #2
0
        private void Init(IDictionary properties, IClientChannelSinkProvider clientSink, IServerChannelSinkProvider serverSink)
        {
            this._clientChannel = new UnixClientChannel(properties, clientSink);
            if (properties["path"] != null)
            {
                this._serverChannel = new UnixServerChannel(properties, serverSink);
            }
            object item = properties["name"];

            if (item != null)
            {
                this._name = item as string;
            }
            item = properties["priority"];
            if (item != null)
            {
                this._priority = Convert.ToInt32(item);
            }
        }
        void Init(IDictionary properties, IClientChannelSinkProvider clientSink, IServerChannelSinkProvider serverSink)
        {
            _clientChannel = new UnixClientChannel(properties, clientSink);

            if (properties["path"] != null)
            {
                _serverChannel = new UnixServerChannel(properties, serverSink);
            }

            object val = properties ["name"];

            if (val != null)
            {
                _name = val as string;
            }

            val = properties ["priority"];
            if (val != null)
            {
                _priority = Convert.ToInt32(val);
            }
        }