/// <summary> /// Constructor. Initializes a new instance of <see cref="HelloServiceDecoratorNoInterface"/> /// </summary> /// <param name="helloService">service to wrap and decorate</param> public HelloServiceDecoratorNoInterface(IHelloService helloService) { _helloService = helloService; }
public HomeController(IHelloService service) { _service = service; }
public HelloServiceInvoker(int index, IHelloService client) { this.Index = index; this.Client = client; this.watch = new Stopwatch(); }
private static void GreetTogether() { var threads = new Thread[ThreadCount]; var clients = new IHelloService[ThreadCount]; for (int i = 0; i < ThreadCount; i++) { clients[i] = CreateClient(); var state = new HelloServiceInvoker(i, clients[i]); threads[i] = new Thread(new ThreadStart(state.InvokeService)); } foreach (Thread t in threads) { t.Start(); } foreach (Thread t in threads) { t.Join(); } foreach (IHelloService t in clients) { ((IChannel)t).Close(); } }
public TestController(IHelloService helloService, ISession session) { _helloService = helloService; _session = session; ; }
public HelloConsumer(IHelloService helloService) { _helloService = helloService; }
public TestController(IHelloService service) { this.service = service; }