Interface ITransportMetadataProvider<TTransportMetadata>
Defines a method for retrieving transport metadata for a service contract in a given application.
Namespace: Copper.Conventions.Method.Common.V1.Interface
Assembly: Copper.Conventions.Method.Common.dll
Syntax
public interface ITransportMetadataProvider<TTransportMetadata>
where TTransportMetadata : class
Type Parameters
Name | Description |
---|---|
TTransportMetadata | The transport metadata type. |
Methods
View SourceRetrieveTransportMetadataFor<TContract>(String, Boolean)
Retrieves the transport metadata for a service contract in a given application.
Declaration
Task<TTransportMetadata> RetrieveTransportMetadataFor<TContract>(string applicationName, bool useCachedTransportMetadataIfAvailable)
where TContract : class
Parameters
Type | Name | Description |
---|---|---|
System.String | applicationName | The Application name. |
System.Boolean | useCachedTransportMetadataIfAvailable |
|
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TTransportMetadata> | The transport metadata. |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |