Ejemplo n.º 1
0
        public void StartDuplexStreaming(System.Net.Http.HttpClient client)
        {
            var message = CreateHttpRequestMessage();

            ClientStreamWriter = CreateWriter(message);
            StartSend(client, message);
            ClientStreamReader = new HttpContentClientStreamReader <TRequest, TResponse>(this);
        }
Ejemplo n.º 2
0
        public void StartServerStreaming(System.Net.Http.HttpClient client, TRequest request)
        {
            var message = CreateHttpRequestMessage();

            SetMessageContent(request, message);
            StartSend(client, message);
            ClientStreamReader = new HttpContentClientStreamReader <TRequest, TResponse>(this);
        }