Exemplo n.º 1
0
 public IServiceImplementationFactory GetServiceImplementationFactory()
 {
     return(serviceImplementationFactory ?? (serviceImplementationFactory =
                                                 overrides.ServiceImplementationFactory != null
                                                   ? overrides.ServiceImplementationFactory(this)
                                                   : new ServiceImplementationFactory(GetServiceDescriptionBuilder(), ClientServer, ClientServer.Settings.GetInterfaceImplementationsPairs())));
 }
 public ImplementationSet(string serviceName, IServiceImplementationFactory serviceImplementationFactory)
 {
     this.serviceName = serviceName;
     this.serviceImplementationFactory = serviceImplementationFactory;
     scopedImplementations             = new ConcurrentDictionary <ScopeKey, Lazy <ServiceImplementationInfo> >();
 }
 public ServiceImplementationContainer(IServiceImplementationFactory serviceImplementationFactory)
 {
     this.serviceImplementationFactory = serviceImplementationFactory;
     implementations = new ConcurrentDictionary <string, ImplementationSet>();
 }
Exemplo n.º 4
0
 public void Setup()
 {
     serviceImplementationFactory = Substitute.For <IServiceImplementationFactory>();
     serviceImplementationFactory.CreateImplementation(null, null).ReturnsForAnyArgs(CreateImplementationInfo);
     container = new ServiceImplementationContainer(serviceImplementationFactory);
 }
 public ImplementationSet(string serviceName, IServiceImplementationFactory serviceImplementationFactory)
 {
     this.serviceName = serviceName;
     this.serviceImplementationFactory = serviceImplementationFactory;
     scopedImplementations = new ConcurrentDictionary<ScopeKey, Lazy<ServiceImplementationInfo>>();
 }
 public ServiceImplementationContainer(IServiceImplementationFactory serviceImplementationFactory)
 {
     this.serviceImplementationFactory = serviceImplementationFactory;
     implementations = new ConcurrentDictionary<string, ImplementationSet>();
 }
 public void Setup()
 {
     serviceImplementationFactory = Substitute.For<IServiceImplementationFactory>();
     serviceImplementationFactory.CreateImplementation(null, null).ReturnsForAnyArgs(CreateImplementationInfo);
     container = new ServiceImplementationContainer(serviceImplementationFactory);
 }
 public IServiceImplementationFactory GetServiceImplementationFactory()
 {
     return serviceImplementationFactory ?? (serviceImplementationFactory =
                                               overrides.ServiceImplementationFactory != null
                                                   ? overrides.ServiceImplementationFactory(this)
                                                   : new ServiceImplementationFactory(GetServiceDescriptionBuilder(), ClientServer, ClientServer.Settings.GetInterfaceImplementationsPairs()));
 }