Esempio n. 1
0
 public ServiceBinder(
     EchoServerClient.IEchoServiceImpl echoService,
     EchoServerClient.IGreetingServiceImpl greetingService,
     EchoServerClient.IAlwaysLaunchGreetingServiceImpl alwaysLaunchGreetingService,
     EchoServerClient.INeverLaunchGreetingServiceImpl neverLaunchGreetingService
     )
 {
     _echoServiceBinder                 = new EchoServerClient.EchoServiceBinder(echoService);
     _greetingServiceBinder             = new EchoServerClient.GreetingServiceBinder(greetingService);
     _alwaysLaunchGreetingServiceBinder = new EchoServerClient.AlwaysLaunchGreetingServiceBinder(alwaysLaunchGreetingService);
     _neverLaunchGreetingServiceBinder  = new EchoServerClient.NeverLaunchGreetingServiceBinder(neverLaunchGreetingService);
 }
Esempio n. 2
0
 public EchoServerClient(
     EchoServerClient.IEchoServiceImpl echoService,
     EchoServerClient.IGreetingServiceImpl greetingService,
     EchoServerClient.IAlwaysLaunchGreetingServiceImpl alwaysLaunchGreetingService,
     EchoServerClient.INeverLaunchGreetingServiceImpl neverLaunchGreetingService,
     Func <ClientOptionsBuilder, ClientOptionsBuilder> setup = null
     )
     : this(new EchoServerClient.ServiceBinder(
                echoService,
                greetingService,
                alwaysLaunchGreetingService,
                neverLaunchGreetingService
                ), setup)
 {
 }