public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) { clientRuntime.MessageInspectors.Add(new SolaceMessageInspector()); foreach (OperationDescription operation in endpoint.Contract.Operations) { if (!MessageBinaryHelper.IsUntypedMessage(operation)) { ClientOperation clientOperation = clientRuntime.Operations[operation.Name]; clientOperation.SerializeRequest = true; clientOperation.DeserializeReply = true; clientOperation.Formatter = new SolaceMessageFormatter(operation, settingsProvider); } } }
public virtual void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) { clientRuntime.MessageInspectors.Add(new SolaceMessageInspector()); foreach (var operationDescription in endpoint.Contract.Operations) { if (!MessageBinaryHelper.IsUntypedMessage(operationDescription)) { var clientOperation = clientRuntime.Operations[operationDescription.Name]; clientOperation.SerializeRequest = true; clientOperation.DeserializeReply = true; clientOperation.Formatter = new SolaceSdtStreamContainerMessageFormatter(operationDescription); } } }
public virtual void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) { endpointDispatcher.ContractFilter = new MatchAllMessageFilter(); endpointDispatcher.DispatchRuntime.OperationSelector = new SolaceOperationSelector(); endpointDispatcher.DispatchRuntime.MessageInspectors.Add(new SolaceMessageInspector()); foreach (var operationDescription in endpoint.Contract.Operations) { if (!MessageBinaryHelper.IsUntypedMessage(operationDescription)) { var dispatchOperation = endpointDispatcher.DispatchRuntime.Operations[operationDescription.Name]; dispatchOperation.DeserializeRequest = true; dispatchOperation.SerializeReply = true; dispatchOperation.Formatter = new SolaceSdtStreamContainerMessageFormatter(operationDescription); } } }
public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) { endpointDispatcher.DispatchRuntime.MessageInspectors.Add(new SolaceMessageInspector()); endpointDispatcher.DispatchRuntime.OperationSelector = new SolaceOperationSelector(); endpointDispatcher.ChannelDispatcher.ErrorHandlers.Add(new SolaceJsonErrorHandler()); endpointDispatcher.ChannelDispatcher.ErrorHandlers.Add(new SolaceJsonPassthroughErrorHandler()); endpointDispatcher.ContractFilter = new MatchAllMessageFilter(); foreach (OperationDescription operation in endpoint.Contract.Operations) { if (!MessageBinaryHelper.IsUntypedMessage(operation)) { DispatchOperation dispatchOperation = endpointDispatcher.DispatchRuntime.Operations[operation.Name]; dispatchOperation.DeserializeRequest = true; dispatchOperation.SerializeReply = true; dispatchOperation.Formatter = new SolaceMessageFormatter(operation, settingsProvider); } } }
public virtual void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) { endpointDispatcher.ContractFilter = new MatchAllMessageFilter(); endpointDispatcher.DispatchRuntime.OperationSelector = new SolaceOperationSelector(); endpointDispatcher.DispatchRuntime.MessageInspectors.Add(new SolaceMessageInspector()); endpointDispatcher.ChannelDispatcher.ErrorHandlers.Add(new SolaceProtobufErrorHandler()); foreach (var operation in endpoint.Contract.Operations) { if (!MessageBinaryHelper.IsUntypedMessage(operation)) { var dispatchOperation = endpointDispatcher.DispatchRuntime.Operations[operation.Name]; dispatchOperation.DeserializeRequest = true; dispatchOperation.SerializeReply = true; dispatchOperation.Formatter = new SolaceProtobufMessageFormatter(operation, converterFactory); } } }