Inheritance: IClientChannel, IServerChannel
コード例 #1
0
ファイル: Program.cs プロジェクト: openpeer/ChatterBox
        private static void Main(string[] args)
        {
            System.Console.Write("Enter your user ID: ");
            var userId = System.Console.ReadLine();
            System.Console.Title = userId;
            var client = new ChatterBoxConsoleClient();
            client.Connect();
            Task.Run(() =>
            {
                client.Register(new Registration
                {
                    Domain = "chatterbox.microsoft.com",
                    Name = userId,
                    UserId = userId,
                    PushNotificationChannelURI = ""
                });
            });

            System.Console.ReadLine();
        }
コード例 #2
0
        private static void Main(string[] args)
        {
            System.Console.Write("Enter your user ID: ");
            var userId = System.Console.ReadLine();

            System.Console.Title = userId;
            var client = new ChatterBoxConsoleClient();

            client.Connect();
            Task.Run(() =>
            {
                client.Register(new Registration
                {
                    Domain = "chatterbox.microsoft.com",
                    Name   = userId,
                    UserId = userId,
                    PushNotificationChannelURI = ""
                });
            });

            System.Console.ReadLine();
        }