コード例 #1
0
ファイル: CDService.cs プロジェクト: sanchaz/PADITable
        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
ファイル: CDService.cs プロジェクト: sanchaz/PADITable
        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();
        }