Exemplo n.º 1
0
 public OperationFormatterBodyWriter(System.ServiceModel.Dispatcher.OperationFormatter operationFormatter, MessageVersion version, object[] parameters, object returnValue, bool isRequest) : base(AreParametersBuffered(isRequest, operationFormatter))
 {
     this.parameters         = parameters;
     this.returnValue        = returnValue;
     this.isRequest          = isRequest;
     this.operationFormatter = operationFormatter;
     this.version            = version;
 }
Exemplo n.º 2
0
                private static bool AreParametersBuffered(bool isRequest, System.ServiceModel.Dispatcher.OperationFormatter operationFormatter)
                {
                    StreamFormatter formatter = isRequest ? operationFormatter.requestStreamFormatter : operationFormatter.replyStreamFormatter;

                    return(formatter == null);
                }