コード例 #1
0
 public static RabbitServiceDescriptor Create(Type serviceType, object instance)
 {
     return(Guarantee(serviceType, new RabbitServiceDescriptor(TypeKeyedUtilities.GetTypeKey(), instance)));
 }
コード例 #2
0
 public static RabbitServiceDescriptor Create(Type serviceType, Func <IServiceProvider, object> factory, ServiceLifetime lifetime)
 {
     return(Guarantee(serviceType, new RabbitServiceDescriptor(TypeKeyedUtilities.GetTypeKey(), factory, lifetime)));
 }
コード例 #3
0
 public static RabbitServiceDescriptor Create(Type serviceType, Type implementationType, ServiceLifetime lifetime)
 {
     return(Guarantee(serviceType, new RabbitServiceDescriptor(TypeKeyedUtilities.GetTypeKey(), implementationType, lifetime)));
 }