Ejemplo n.º 1
0
 public ClientStreamingResult(TResponse rawValue)
 {
     this.hasRawValue   = true;
     this.rawValue      = rawValue;
     this.inner         = null;
     this.requestStream = null;
     this.resolver      = null;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 public ClientStreamingResult(AsyncClientStreamingCall <byte[], byte[]> inner, IFormatterResolver resolver)
 {
     this.inner         = inner;
     this.requestStream = new MarshallingClientStreamWriter <TRequest>(inner.RequestStream, resolver);
     this.resolver      = resolver;
 }
Ejemplo n.º 4
0
 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;
 }