예제 #1
0
 public IServiceMethodHandlerFactory GetServiceMethodHandlerFactory()
 {
     return(serviceMethodHandlerFactory ?? (serviceMethodHandlerFactory =
                                                overrides.ServiceMethodHandlerFactory != null
                                                ? overrides.ServiceMethodHandlerFactory(this)
                                                : new ServiceMethodHandlerFactory(GetCodecContainer())));
 }
 public void Setup()
 {
     factory   = Substitute.For <IServiceMethodHandlerFactory>();
     container = new ServiceMethodHandlerContainer(factory);
 }
 public void Setup()
 {
     factory = Substitute.For<IServiceMethodHandlerFactory>();
     container = new ServiceMethodHandlerContainer(factory);
 }
예제 #4
0
 public ServiceMethodHandlerContainer(IServiceMethodHandlerFactory factory)
 {
     this.factory = factory;
     handlers     = new ConcurrentDictionary <ServicePath, ServiceMethodHandler>();
 }
 public ServiceMethodHandlerContainer(IServiceMethodHandlerFactory factory)
 {
     this.factory = factory;
     handlers = new ConcurrentDictionary<ServicePath, ServiceMethodHandler>();
 }
 public IServiceMethodHandlerFactory GetServiceMethodHandlerFactory()
 {
     return serviceMethodHandlerFactory ?? (serviceMethodHandlerFactory =
                                            overrides.ServiceMethodHandlerFactory != null
                                                ? overrides.ServiceMethodHandlerFactory(this)
                                                : new ServiceMethodHandlerFactory(GetCodecContainer()));
 }