Show / Hide Table of Contents

    Class ManagerTransportMetadataProvider

    Defines a method for retrieving transport metadata for a Manager contract in a given application.

    Inheritance
    System.Object
    TransportMetadataProvider<TransportMetadata>
    ManagerTransportMetadataProvider
    Implements
    ITransportMetadataProvider<TransportMetadata>
    Namespace: Copper.Conventions.Method.Client.V1
    Assembly: Copper.Conventions.Method.Client.dll
    Syntax
    public class ManagerTransportMetadataProvider : TransportMetadataProvider<TransportMetadata>, ITransportMetadataProvider<TransportMetadata>

    Constructors

    View Source

    ManagerTransportMetadataProvider(IManagerProxyDiscoveryClientBuilderFactory, IOptionsMonitor<TransportMetadataProviderOptions>, IDistributedCache)

    Initializes a new instance of the ManagerTransportMetadataProvider class.

    Declaration
    public ManagerTransportMetadataProvider(IManagerProxyDiscoveryClientBuilderFactory managerProxyDiscoveryClientBuilderFactory, IOptionsMonitor<TransportMetadataProviderOptions> transportMetadataProviderOptions, IDistributedCache distributedCache)
    Parameters
    Type Name Description
    IManagerProxyDiscoveryClientBuilderFactory managerProxyDiscoveryClientBuilderFactory

    The manager proxy discovery client builder factory.

    IOptionsMonitor<TransportMetadataProviderOptions> transportMetadataProviderOptions

    The transport metadata provider options.

    IDistributedCache distributedCache

    The distributed cache.

    Methods

    View Source

    GetServiceDiscoveryCriteriaFor<TContract>(String)

    Gets the service discovery criteria.

    Declaration
    protected override ServiceDiscoveryCriteria GetServiceDiscoveryCriteriaFor<TContract>(string applicationName)
        where TContract : class
    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.

    Overrides
    Copper.Conventions.Method.Common.V1.TransportMetadataProvider<TransportMetadata>.GetServiceDiscoveryCriteriaFor<TContract>(System.String)
    View Source

    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.

    Exceptions
    Type Condition
    System.InvalidOperationException

    Implements

    ITransportMetadataProvider<TTransportMetadata>
    • View Source
    Back to top Generated by DocFX