Пример #1
0
        public override async Task Register()
        {
            var source = new CancellationTokenSource(15000);

            await Task.Run(() =>
            {
                Init();
                var rt = _sdkLib.registerServer(120, 0);
            }, source.Token);

            source.Dispose();
        }