コード例 #1
0
        public Server()
        {
            fServer = new RemotingServer();
            fServer.RegisterStaticMethod("GetServer", typeof(Server).GetMethod("GetInstance"));
            fServer.CryptographyMode = CryptographyMode.Required;
            fServer.RegisterAcceptedCryptography <RijndaelManaged>();
            fServer.MustUseAsyncVoidCalls = true;

            fServer.UserChannelCreated += p_UserChannelCreated;

            UnlimitedThreadPool.Run
            (
                delegate
            {
                try
                {
                    fServer.Run(570);
                }
                catch
                {
                }
            }
            );
        }