Class ServiceProxy
Defines a method for creating a service proxy for a given contract type.
Inheritance
System.Object
ServiceProxy
Implements
System.IDisposable
Namespace: Copper.Remoting.Client
Assembly: Copper.Remoting.Client.dll
Syntax
public class ServiceProxy : IDisposable
Constructors
View SourceServiceProxy(IEnumerable<IFrameworkSendInterceptor>, IEnumerable<ISendInterceptor>)
Initializes a new instance of the ServiceProxy class.
Declaration
public ServiceProxy(IEnumerable<IFrameworkSendInterceptor> frameworkSendInterceptors, IEnumerable<ISendInterceptor> sendInterceptors)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IFrameworkSendInterceptor> | frameworkSendInterceptors | The framework send interceptors. |
System.Collections.Generic.IEnumerable<ISendInterceptor> | sendInterceptors | The send interceptors. |
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>(IRequestSubmitterFactory)
Creates a service proxy for the given contract type.
Declaration
public TContract For<TContract>(IRequestSubmitterFactory requestSubmitterFactory)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
IRequestSubmitterFactory | requestSubmitterFactory | The request submitter factory. |
Returns
Type | Description |
---|---|
TContract | The service proxy. |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
For<TContract>(RequestSubmitterBuilder)
Creates a service proxy for the given contract type.
Declaration
public TContract For<TContract>(RequestSubmitterBuilder requestSubmitterBuilder)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
RequestSubmitterBuilder | requestSubmitterBuilder | The request submitter builder. |
Returns
Type | Description |
---|---|
TContract | The service proxy. |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
Implements
System.IDisposable