示例#1
0
        private async void _OnStreamRejectedCallback()
        {
            _isStreamRejected = true;

            // close stream
            var request = ZRequestFactory.CreateServerListCloseStreamRequest(_gameContext);
            await ZRouter.CloseStreamAsync(request);
        }
示例#2
0
        public void Dispose()
        {
            if (__disposed)
            {
                return;
            }

            if (!_isStreamRejected)
            {
                var request  = ZRequestFactory.CreateServerListCloseStreamRequest(_gameContext);
                var response = ZRouter.CloseStreamAsync(request).Result;
            }

            _parser.Close();

            __disposed = true;
        }