C# Class Castle.Facilities.WcfIntegration.WindsorInstanceProvider

Initialize a service using Windsor
Inheritance: IInstanceProvider
Exibir arquivo Open project: castleproject/Windsor

Public Methods

Method Description
GetInstance ( System.ServiceModel.InstanceContext instanceContext ) : object

Returns a service object given the specified object.

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

Returns a service object given the specified object.

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

Called when an object recycles a service object.

WindsorInstanceProvider ( IKernel kernel, ComponentModel model, Type contractType, Type serviceType ) : System

Initializes a new instance of the T:Castle.Facilities.WcfIntegration.WindsorInstanceProvider class.

Method Details

GetInstance() public method

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

GetInstance() public method

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

ReleaseInstance() public method

Called when an 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.
return void

WindsorInstanceProvider() public method

Initializes a new instance of the T:Castle.Facilities.WcfIntegration.WindsorInstanceProvider class.
public WindsorInstanceProvider ( IKernel kernel, ComponentModel model, Type contractType, Type serviceType ) : System
kernel IKernel
model Castle.Core.ComponentModel
contractType System.Type
serviceType System.Type
return System