Class ManagerProxy
Provides the capability to create Manager proxies.
Inheritance
System.Object
ManagerProxy
Namespace: Copper.Conventions.Method.Client.V1
Assembly: Copper.Conventions.Method.Client.dll
Syntax
public class ManagerProxy : IManagerProxy, IDisposable
Constructors
View SourceManagerProxy(ServiceProxy, IManagerRequestSubmitterBuilderFactory)
Initializes a new instance of the ManagerProxy class.
Declaration
public ManagerProxy(ServiceProxy serviceProxy, IManagerRequestSubmitterBuilderFactory managerRequestSubmitterBuilderFactory)
Parameters
Type | Name | Description |
---|---|---|
ServiceProxy | serviceProxy | |
IManagerRequestSubmitterBuilderFactory | managerRequestSubmitterBuilderFactory |
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>(Action<RequestSubmitterBuilder>)
Creates a Manager 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 a Manager 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. |
For<TContract>(String)
Creates a Manager proxy for the given contract type.
Declaration
public TContract For<TContract>(string applicationName)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
System.String | applicationName | The Manager's application name. |
Returns
Type | Description |
---|---|
TContract |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
Implements
System.IDisposable