C# Class WhippedCream.DataServiceDataLayer.DataServiceDependencyInstanceProvider

Whipped Cream uses this object so it can use Dependency Injection when creating instances of services hosts.
Inheritance: IInstanceProvider
ファイルを表示 Open project: KCL5South/WhippedCream Class Usage Examples

Public Methods

Method Description
DataServiceDependencyInstanceProvider ( IUnityContainer container, Type serviceType ) : System

Constructor.

IInstanceProvider ( System instanceContext, object instance ) : void

Private Methods

Method Description
IInstanceProvider ( System instanceContext ) : object
IInstanceProvider ( System instanceContext, System message ) : object

Method Details

DataServiceDependencyInstanceProvider() public method

Constructor.
Thrown if or are null.
public DataServiceDependencyInstanceProvider ( IUnityContainer container, Type serviceType ) : System
container IUnityContainer The IOC container to use for dependency injection.
serviceType System.Type The type of host to create.
return System

IInstanceProvider() public method

public IInstanceProvider ( System instanceContext, object instance ) : void
instanceContext System
instance object
return void