Ejemplo n.º 1
0
        private static ClientOptions CreateClientOptions(EchoServerClient.ServiceBinder serviceBinder, Func <ClientOptionsBuilder, ClientOptionsBuilder> setup = null)
        {
            ClientOptionsBuilder builder = new ClientOptionsBuilder().WithApplicationId(Id).WithDefaultConfiguration();

            serviceBinder.Bind(builder);
            if (setup != null)
            {
                builder = setup(builder);
            }
            return(builder.Build());
        }
Ejemplo n.º 2
0
 public EchoServerClient(EchoServerClient.ServiceBinder serviceBinder, Func <ClientOptionsBuilder, ClientOptionsBuilder> setup = null) : base(CreateClientOptions(serviceBinder, setup))
 {
     EchoService     = new EchoServerClient.EchoServiceProxy(this.CallInvoker);
     GreetingService = new EchoServerClient.GreetingServiceProxy(this.CallInvoker);
 }