DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Services.ServiceContainer.RegistrationConfiguration< TService > Class Template Reference
Inheritance diagram for Deveel.Data.Services.ServiceContainer.RegistrationConfiguration< TService >:
Deveel.Data.Services.IRegistrationConfiguration< TService > Deveel.Data.Services.IRegistrationConfigurationProvider

Public Member Functions

 RegistrationConfiguration (ServiceContainer container)
 
IRegistrationWithBindingConfiguration< TService, TImplementation > To< TImplementation > ()
 
IRegistrationWithBindingConfiguration< TService, TImplementation > ToInstance< TImplementation > (TImplementation instance)
 

Properties

Type ServiceType [get]
 
ServiceContainer Container [get, private set]
 
bool IsBound [get, set]
 
Type ImplementationType [get, set]
 
object ServiceKey [get, set]
 
string ScopeName [get, set]
 
object Instance [get, private set]
 
- Properties inherited from Deveel.Data.Services.IRegistrationConfigurationProvider
ServiceContainer Container [get]
 
Type ServiceType [get]
 
Type ImplementationType [get]
 
object ServiceKey [get]
 
string ScopeName [get]
 
object Instance [get]
 

Private Member Functions

void AssertNotBound ()
 

Detailed Description

Definition at line 171 of file ServiceContainer.cs.

Constructor & Destructor Documentation

Member Function Documentation

void Deveel.Data.Services.ServiceContainer.RegistrationConfiguration< TService >.AssertNotBound ( )
inlineprivate

Definition at line 195 of file ServiceContainer.cs.

195  {
196  if (IsBound)
197  throw new InvalidOperationException("The registration was already bound.");
198  }
IRegistrationWithBindingConfiguration<TService, TImplementation> Deveel.Data.Services.ServiceContainer.RegistrationConfiguration< TService >.To< TImplementation > ( )
inline

Implements Deveel.Data.Services.IRegistrationConfiguration< TService >.

Type Constraints
TImplementation :class 
TImplementation :TService 

Definition at line 176 of file ServiceContainer.cs.

176  : class, TService {
177  AssertNotBound();
178  ImplementationType = typeof (TImplementation);
179  IsBound = true;
180  return new RegistrationWithBindingConfiguration<TService, TImplementation>(this);
181  }
IRegistrationWithBindingConfiguration<TService, TImplementation> Deveel.Data.Services.ServiceContainer.RegistrationConfiguration< TService >.ToInstance< TImplementation > ( TImplementation  instance)
inline

Implements Deveel.Data.Services.IRegistrationConfiguration< TService >.

Type Constraints
TImplementation :class 
TImplementation :TService 

Definition at line 183 of file ServiceContainer.cs.

183  : class, TService {
184  AssertNotBound();
185  ImplementationType = typeof (TImplementation);
186  Instance = instance;
187  IsBound = true;
188  return new RegistrationWithBindingConfiguration<TService, TImplementation>(this);
189  }

Property Documentation

Definition at line 200 of file ServiceContainer.cs.

Type Deveel.Data.Services.ServiceContainer.RegistrationConfiguration< TService >.ImplementationType
getset

Definition at line 204 of file ServiceContainer.cs.

object Deveel.Data.Services.ServiceContainer.RegistrationConfiguration< TService >.Instance
getprivate set

Definition at line 210 of file ServiceContainer.cs.

Definition at line 202 of file ServiceContainer.cs.

Definition at line 208 of file ServiceContainer.cs.

Definition at line 206 of file ServiceContainer.cs.

Definition at line 191 of file ServiceContainer.cs.


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