Пример #1
0
        public CDService(string username, string port)
        {
            mCDChannel = new TcpChannel(Int32.Parse(port));
            ChannelServices.RegisterChannel(mCDChannel, true);

            RemotingServices.Marshal(this, username, typeof(ICentralDir));
            string[] urls = ChannelServices.GetUrlsForObject(this);
            System.Console.WriteLine("Central Directory instantiated with URL " + urls[0]);

            mParticipantMngr = new ParticipantManager();
            mCdThread        = new CDThread();
        }
Пример #2
0
        public CDService(string username, string port)
        {
            mCDChannel = new TcpChannel(Int32.Parse(port));
            ChannelServices.RegisterChannel(mCDChannel, true);

            RemotingServices.Marshal(this, username, typeof(ICentralDir));
            string[] urls = ChannelServices.GetUrlsForObject(this);
            System.Console.WriteLine("Central Directory instantiated with URL " + urls[0]);

            mParticipantMngr = new ParticipantManager();
            mCdThread = new CDThread();
        }