Method | Description | |
---|---|---|
GetInstance ( IInstanceStrategyContext context, object &instance ) : InstanceResult |
Get instance.
|
Method | Description | |
---|---|---|
CreateInstance ( IInstanceStrategyContext context ) : object |
Create a new instance.
|
|
GetScoped ( IInstanceStrategyContext context, object &instance ) : InstanceResult |
Gets the scoped object (created or from storage).
|
|
GetSingleton ( IInstanceStrategyContext context, object &instance ) : InstanceResult |
Gets the service as a singleton (created or from the storage)
|
|
InstanceStrategyBase ( Lifetime lifetime ) : System |
Initializes a new instance of the InstanceStrategyBase class.
|
protected abstract CreateInstance ( IInstanceStrategyContext context ) : object | ||
context | IInstanceStrategyContext | Context |
return | object |
public GetInstance ( IInstanceStrategyContext context, object &instance ) : InstanceResult | ||
context | IInstanceStrategyContext | Information used to create/fetch instance. |
instance | object | Instance that was loaded/created |
return | InstanceResult |
protected GetScoped ( IInstanceStrategyContext context, object &instance ) : InstanceResult | ||
context | IInstanceStrategyContext | The context. |
instance | object | The instance. |
return | InstanceResult |
protected GetSingleton ( IInstanceStrategyContext context, object &instance ) : InstanceResult | ||
context | IInstanceStrategyContext | The context. |
instance | object | The instance. |
return | InstanceResult |
protected InstanceStrategyBase ( Lifetime lifetime ) : System | ||
lifetime | Lifetime | The lifetime. |
return | System |