コード例 #1
0
        public MainWindow()
        {
            instance = this;

            InitializeComponent();

            clientObject = new ClientObject();

            clientObject.initClient(IP, HOST);

            clientForCertificate = new ClientObject();
            clientForCertificate.initClient(IP, CA);

            Log("Clinet started");
            Log("Wating certificate");

            KeyManager.generateSessionKey();

            clientObject.connectUntilSuss((e) =>
            {
                RequestsManager.GetPublicKey(e);
            });
        }