Class EngineProxy
Provides the capability to create Engine proxies.
Inheritance
System.Object
EngineProxy
Namespace: Copper.Conventions.Method.Service.V1
Assembly: Copper.Conventions.Method.Service.dll
Syntax
public class EngineProxy : IEngineProxy, IDisposable
Constructors
View SourceEngineProxy(ServiceProxy, IEngineRequestSubmitterBuilderFactory, IServiceContextProvider)
Initializes a new instance of the EngineProxy class.
Declaration
public EngineProxy(ServiceProxy serviceProxy, IEngineRequestSubmitterBuilderFactory engineRequestSubmitterBuilderFactory, IServiceContextProvider serviceContextProvider)
Parameters
Type | Name | Description |
---|---|---|
ServiceProxy | serviceProxy | The serviceProxy. |
IEngineRequestSubmitterBuilderFactory | engineRequestSubmitterBuilderFactory | |
IServiceContextProvider | serviceContextProvider |
Methods
View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
|
For<TContract>()
Creates an Engine proxy for the given contract type.
Declaration
public TContract For<TContract>()
where TContract : class
Returns
Type | Description |
---|---|
TContract |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
For<TContract>(Action<RequestSubmitterBuilder>)
Creates an Engine proxy for the given contract type.
Declaration
public TContract For<TContract>(Action<RequestSubmitterBuilder> requestSubmitterBuilderConfigureDelegate)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
System.Action<RequestSubmitterBuilder> | requestSubmitterBuilderConfigureDelegate | The request submitter builder configure delegate. |
Returns
Type | Description |
---|---|
TContract |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
For<TContract>(Func<RequestSubmitterBuilder>)
Creates an Engine proxy for the given contract type.
Declaration
public TContract For<TContract>(Func<RequestSubmitterBuilder> requestSubmitterBuilderFactory)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
System.Func<RequestSubmitterBuilder> | requestSubmitterBuilderFactory | The request submitter builder factory. |
Returns
Type | Description |
---|---|
TContract |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
Implements
System.IDisposable