public static ClientOptionsBuilder WithDefaultConfiguration(this ClientOptionsBuilder builder, string brokerWorkingDir) { return(builder .WithMarshaller( new ProtobufMarshallerProvider()) .WithProtocol( new ProtocolImplementation( ProtocolMessagePool.Instance, new ProtobufProtocolSerializerFactory())) .WithTransport( new TransportConnectionFactory( new PipeTransmissionClient(brokerWorkingDir), new ProtobufTransportProtocolSerializationProvider()))); }
public static ClientOptionsBuilder WithDefaultConfiguration(this ClientOptionsBuilder builder) { return(builder .WithMarshaller( new ProtobufMarshallerProvider()) .WithProtocol( new ProtocolImplementation( ProtocolMessagePool.Instance, new ProtobufProtocolSerializerFactory())) .WithTransport( TransportClientFactory.Instance.Create( PipeTransmissionClientFactory.Instance.Create(), new ProtobufTransportProtocolSerializationProvider()))); }
public static ClientOptionsBuilder WithDefaultConfiguration( this ClientOptionsBuilder builder, string brokerWorkingDir = null) { if (brokerWorkingDir == null) { brokerWorkingDir = Environment.GetEnvironmentVariable("PLEXUS_BROKER_WORKING_DIR") ?? Directory.GetCurrentDirectory(); } return(builder .WithMarshaller( new ProtobufMarshallerProvider()) .WithProtocol( new ProtocolImplementation( ProtocolMessagePool.Instance, new ProtobufProtocolSerializerFactory())) .WithTransport( new TransportClient( new PipeTransmissionClient(brokerWorkingDir), new ProtobufTransportProtocolSerializationProvider()))); }