Example #1
0
 public ClientStreamingResult(TResponse rawValue)
 {
     this.hasRawValue   = true;
     this.rawValue      = rawValue;
     this.inner         = null;
     this.requestStream = null;
     this.resolver      = null;
 }
Example #2
0
 public ClientStreamingResult(AsyncClientStreamingCall <byte[], byte[]> inner, IFormatterResolver resolver)
 {
     this.hasRawValue   = false;
     this.rawValue      = default(TResponse);
     this.inner         = inner;
     this.requestStream = new MarshallingClientStreamWriter <TRequest>(inner.RequestStream, resolver);
     this.resolver      = resolver;
 }
Example #3
0
 public ClientStreamingResult(AsyncClientStreamingCall <byte[], byte[]> inner, IFormatterResolver resolver)
 {
     this.inner         = inner;
     this.requestStream = new MarshallingClientStreamWriter <TRequest>(inner.RequestStream, resolver);
     this.resolver      = resolver;
 }
 public DuplexStreamingResult(AsyncDuplexStreamingCall <byte[], byte[]> inner, IFormatterResolver resolver)
 {
     this.inner          = inner;
     this.requestStream  = new MarshallingClientStreamWriter <TRequest>(inner.RequestStream, resolver);
     this.responseStream = new MarshallingAsyncStreamReader <TResponse>(inner.ResponseStream, resolver);
 }
 public ClientStreamingResult(AsyncClientStreamingCall <byte[], byte[]> inner, Marshaller <TRequest> requestMarshaller, Marshaller <TResponse> responseMarshaller)
 {
     this.inner              = inner;
     this.requestStream      = new MarshallingClientStreamWriter <TRequest>(inner.RequestStream, requestMarshaller);
     this.responseMarshaller = responseMarshaller;
 }