public async Task <TResult> SendRequestAsync <TResult>(IRequest <TResult> request, CancellationToken cancellationToken)
        {
            var resultTask = RequestService.RegisterRequest(request, cancellationToken);

            if (ClientSettings.ConnectionWasInitialize())
            {
                await ContextGetter.Context.WriteAndFlushAsync(request);
            }

            return((TResult)await resultTask);
        }