DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.ContextExtensions Class Reference

Static Public Member Functions

static object ResolveService (this IContext context, Type serviceType, object serviceKey)
 
static object ResolveService (this IContext context, Type serviceType)
 
static TService ResolveService< TService > (this IContext context, object serviceKey)
 
static TService ResolveService< TService > (this IContext context)
 
static IEnumerable ResolveAllServices (this IContext context, Type serviceType)
 
static IEnumerable< TService > ResolveAllServices< TService > (this IContext context)
 
static void RegisterService (this IContext context, Type serviceType, Type implementationType, object serviceKey)
 
static void RegisterService (this IContext context, Type serviceType, Type implementationType)
 
static void RegisterService (this IContext context, Type serviceType, object serviceKey)
 
static void RegisterService (this IContext context, Type serviceType)
 
static void RegisterService< TService, TImplementation > (this IContext context, object serviceKey)
 
static void RegisterService< TService, TImplementation > (this IContext context)
 
static void RegisterService< TService > (this IContext context, object serviceKey)
 
static void RegisterService< TService > (this IContext context)
 
static void RegisterInstance (this IContext context, Type serviceType, object instance, object serviceKey)
 
static void RegisterInstance (this IContext context, Type serviceType, object instance)
 
static void RegisterInstance< TService > (this IContext context, TService instance, object serviceKey)
 
static void RegisterInstance< TService > (this IContext context, TService instance)
 
static void UnregisterService (this IContext context, Type serviceType)
 
static void UnregisterService< TService > (this IContext context, object serviceKey)
 
static void UnregisterService< TService > (this IContext context)
 

Detailed Description

Definition at line 24 of file ContextExtensions.cs.

Member Function Documentation

static void Deveel.Data.ContextExtensions.RegisterInstance ( this IContext  context,
Type  serviceType,
object  instance,
object  serviceKey 
)
inlinestatic

Definition at line 85 of file ContextExtensions.cs.

85  {
86  context.Scope.RegisterInstance(serviceType, instance, serviceKey);
87  }
static void Deveel.Data.ContextExtensions.RegisterInstance ( this IContext  context,
Type  serviceType,
object  instance 
)
inlinestatic

Definition at line 89 of file ContextExtensions.cs.

89  {
90  context.Scope.RegisterInstance(serviceType, instance);
91  }
static void Deveel.Data.ContextExtensions.RegisterInstance< TService > ( this IContext  context,
TService  instance,
object  serviceKey 
)
inlinestatic
Type Constraints
TService :class 

Definition at line 93 of file ContextExtensions.cs.

94  : class {
95  context.Scope.RegisterInstance<TService>(instance, serviceKey);
96  }
static void Deveel.Data.ContextExtensions.RegisterInstance< TService > ( this IContext  context,
TService  instance 
)
inlinestatic
Type Constraints
TService :class 

Definition at line 98 of file ContextExtensions.cs.

99  : class {
100  context.Scope.RegisterInstance<TService>(instance);
101  }
static void Deveel.Data.ContextExtensions.RegisterService ( this IContext  context,
Type  serviceType,
Type  implementationType,
object  serviceKey 
)
inlinestatic

Definition at line 49 of file ContextExtensions.cs.

49  {
50  context.Scope.Register(serviceType, implementationType, serviceKey);
51  }
static void Deveel.Data.ContextExtensions.RegisterService ( this IContext  context,
Type  serviceType,
Type  implementationType 
)
inlinestatic

Definition at line 53 of file ContextExtensions.cs.

53  {
54  context.Scope.Register(serviceType, implementationType);
55  }
static void Deveel.Data.ContextExtensions.RegisterService ( this IContext  context,
Type  serviceType,
object  serviceKey 
)
inlinestatic

Definition at line 57 of file ContextExtensions.cs.

57  {
58  context.Scope.Register(serviceType, serviceKey);
59  }
static void Deveel.Data.ContextExtensions.RegisterService ( this IContext  context,
Type  serviceType 
)
inlinestatic

Definition at line 61 of file ContextExtensions.cs.

61  {
62  context.Scope.Register(serviceType);
63  }
static void Deveel.Data.ContextExtensions.RegisterService< TService > ( this IContext  context,
object  serviceKey 
)
inlinestatic
Type Constraints
TService :class 

Definition at line 75 of file ContextExtensions.cs.

76  : class {
77  context.Scope.Register<TService>(serviceKey);
78  }
static void Deveel.Data.ContextExtensions.RegisterService< TService > ( this IContext  context)
inlinestatic
Type Constraints
TService :class 

Definition at line 80 of file ContextExtensions.cs.

81  : class {
82  context.Scope.Register<TService>();
83  }
static void Deveel.Data.ContextExtensions.RegisterService< TService, TImplementation > ( this IContext  context,
object  serviceKey 
)
inlinestatic
Type Constraints
TImplementation :class 
TImplementation :TService 

Definition at line 65 of file ContextExtensions.cs.

66  : class, TService {
67  context.Scope.Register<TService, TImplementation>(serviceKey);
68  }
static void Deveel.Data.ContextExtensions.RegisterService< TService, TImplementation > ( this IContext  context)
inlinestatic
Type Constraints
TImplementation :class 
TImplementation :TService 

Definition at line 70 of file ContextExtensions.cs.

71  : class, TService {
72  context.Scope.Register<TService, TImplementation>();
73  }
static IEnumerable Deveel.Data.ContextExtensions.ResolveAllServices ( this IContext  context,
Type  serviceType 
)
inlinestatic

Definition at line 41 of file ContextExtensions.cs.

41  {
42  return context.Scope.ResolveAll(serviceType);
43  }
static IEnumerable<TService> Deveel.Data.ContextExtensions.ResolveAllServices< TService > ( this IContext  context)
inlinestatic

Definition at line 45 of file ContextExtensions.cs.

45  {
46  return context.Scope.ResolveAll<TService>();
47  }
static object Deveel.Data.ContextExtensions.ResolveService ( this IContext  context,
Type  serviceType,
object  serviceKey 
)
inlinestatic

Definition at line 25 of file ContextExtensions.cs.

25  {
26  return context.Scope.Resolve(serviceType, serviceKey);
27  }
static object Deveel.Data.ContextExtensions.ResolveService ( this IContext  context,
Type  serviceType 
)
inlinestatic

Definition at line 29 of file ContextExtensions.cs.

29  {
30  return context.Scope.Resolve(serviceType);
31  }
static TService Deveel.Data.ContextExtensions.ResolveService< TService > ( this IContext  context,
object  serviceKey 
)
inlinestatic

Definition at line 33 of file ContextExtensions.cs.

33  {
34  return context.Scope.Resolve<TService>(serviceKey);
35  }
static TService Deveel.Data.ContextExtensions.ResolveService< TService > ( this IContext  context)
inlinestatic

Definition at line 37 of file ContextExtensions.cs.

37  {
38  return context.Scope.Resolve<TService>();
39  }
static void Deveel.Data.ContextExtensions.UnregisterService ( this IContext  context,
Type  serviceType 
)
inlinestatic

Definition at line 103 of file ContextExtensions.cs.

103  {
104  context.Scope.Unregister(serviceType);
105  }
static void Deveel.Data.ContextExtensions.UnregisterService< TService > ( this IContext  context,
object  serviceKey 
)
inlinestatic

Definition at line 107 of file ContextExtensions.cs.

107  {
108  context.Scope.Unregister<TService>(serviceKey);
109  }
static void Deveel.Data.ContextExtensions.UnregisterService< TService > ( this IContext  context)
inlinestatic

Definition at line 111 of file ContextExtensions.cs.

111  {
112  context.Scope.Unregister<TService>();
113  }

The documentation for this class was generated from the following file: