Class EngineTransportMetadataProvider
Defines a method for retrieving transport metadata for an Engine contract in a given application.
Inheritance
System.Object
EngineTransportMetadataProvider
Namespace: Copper.Conventions.Method.Service.V1
Assembly: Copper.Conventions.Method.Service.dll
Syntax
public class EngineTransportMetadataProvider : TransportMetadataProvider<TransportMetadata>
Constructors
View SourceEngineTransportMetadataProvider(IEngineProxyDiscoveryClientBuilderFactory, IOptionsMonitor<TransportMetadataProviderOptions>, IDistributedCache)
Initializes a new instance of the EngineTransportMetadataProvider class.
Declaration
public EngineTransportMetadataProvider(IEngineProxyDiscoveryClientBuilderFactory engineProxyDiscoveryClientBuilderFactory, IOptionsMonitor<TransportMetadataProviderOptions> transportMetadataProviderOptions, IDistributedCache distributedCache)
Parameters
Type | Name | Description |
---|---|---|
IEngineProxyDiscoveryClientBuilderFactory | engineProxyDiscoveryClientBuilderFactory | The engine proxy discovery client builder factory. |
IOptionsMonitor<TransportMetadataProviderOptions> | transportMetadataProviderOptions | The transport metadata provider options. |
IDistributedCache | distributedCache | The distributed cache. |
Methods
View SourceGetServiceDiscoveryCriteriaFor<TContract>(String)
Gets the service discovery criteria.
Declaration
protected override ServiceDiscoveryCriteria GetServiceDiscoveryCriteriaFor<TContract>(string applicationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | applicationName | The application name. |
Returns
Type | Description |
---|---|
ServiceDiscoveryCriteria | The service discovery metadata. |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |
GetTransportMetadataFor<TContract>(ServiceDiscoveryResponse)
Gets the transport metadata.
Declaration
protected override TransportMetadata GetTransportMetadataFor<TContract>(ServiceDiscoveryResponse serviceDiscoveryResponse)
Parameters
Type | Name | Description |
---|---|---|
ServiceDiscoveryResponse | serviceDiscoveryResponse | The service discovery response. |
Returns
Type | Description |
---|---|
TransportMetadata | The transport metadata. |
Type Parameters
Name | Description |
---|---|
TContract | The contract type. |