private async void _OnStreamRejectedCallback() { _isStreamRejected = true; // close stream var request = ZRequestFactory.CreateServerListCloseStreamRequest(_gameContext); await ZRouter.CloseStreamAsync(request); }
public void Dispose() { if (__disposed) { return; } if (!_isStreamRejected) { var request = ZRequestFactory.CreateServerListCloseStreamRequest(_gameContext); var response = ZRouter.CloseStreamAsync(request).Result; } _parser.Close(); __disposed = true; }