C# 클래스 Thinktecture.ServiceModel.IoC.IocInstanceProvider

NOTE: only works with non-singleton instances.
상속: IInstanceProvider
파일 보기 프로젝트 열기: ChristianWeyer/Thinktecture.ServiceModel

공개 메소드들

메소드 설명
GetInstance ( System.ServiceModel.InstanceContext instanceContext ) : object

Returns a service object given the specified T:System.ServiceModel.InstanceContext object.

GetInstance ( System.ServiceModel.InstanceContext instanceContext, System message ) : object

Returns a service object given the specified T:System.ServiceModel.InstanceContext object.

IocInstanceProvider ( Type serviceType ) : System

Initializes a new instance of the IocInstanceProvider class.

IocInstanceProvider ( Type serviceType, string containerName ) : System

Initializes a new instance of the IocInstanceProvider class.

ReleaseInstance ( System.ServiceModel.InstanceContext instanceContext, object instance ) : void

Called when an T:System.ServiceModel.InstanceContext object recycles a service object.

비공개 메소드들

메소드 설명
CreateUnityContainer ( string containerName ) : IServiceLocator

메소드 상세

GetInstance() 공개 메소드

Returns a service object given the specified T:System.ServiceModel.InstanceContext object.
public GetInstance ( System.ServiceModel.InstanceContext instanceContext ) : object
instanceContext System.ServiceModel.InstanceContext The current object.
리턴 object

GetInstance() 공개 메소드

Returns a service object given the specified T:System.ServiceModel.InstanceContext object.
public GetInstance ( System.ServiceModel.InstanceContext instanceContext, System message ) : object
instanceContext System.ServiceModel.InstanceContext The current object.
message System The message that triggered the creation of a service object.
리턴 object

IocInstanceProvider() 공개 메소드

Initializes a new instance of the IocInstanceProvider class.
public IocInstanceProvider ( Type serviceType ) : System
serviceType System.Type Type of the service.
리턴 System

IocInstanceProvider() 공개 메소드

Initializes a new instance of the IocInstanceProvider class.
public IocInstanceProvider ( Type serviceType, string containerName ) : System
serviceType System.Type Type of the service.
containerName string Name of the container.
리턴 System

ReleaseInstance() 공개 메소드

Called when an T:System.ServiceModel.InstanceContext object recycles a service object.
public ReleaseInstance ( System.ServiceModel.InstanceContext instanceContext, object instance ) : void
instanceContext System.ServiceModel.InstanceContext The service's instance context.
instance object The service object to be recycled.
리턴 void