Class AccessProxy
Provides the capability to create Access proxies.
Inheritance
System.Object
AccessProxy
Namespace: Copper.Conventions.Method.Service.V1
Assembly: Copper.Conventions.Method.Service.dll
Syntax
public class AccessProxy : IAccessProxy, IDisposable
Constructors
View SourceAccessProxy(ServiceProxy, IAccessRequestSubmitterBuilderFactory, IServiceContextProvider)
Initializes a new instance of the AccessProxy class.
Declaration
public AccessProxy(ServiceProxy serviceProxy, IAccessRequestSubmitterBuilderFactory accessRequestSubmitterBuilderFactory, IServiceContextProvider serviceContextProvider)
Parameters
Type | Name | Description |
---|---|---|
ServiceProxy | serviceProxy | The serviceProxy. |
IAccessRequestSubmitterBuilderFactory | accessRequestSubmitterBuilderFactory | |
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 Access 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 Access 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 Access 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