Show / Hide Table of Contents

    Class ServiceContextProvider

    Provides a set of properties relating to a service's context.

    Inheritance
    System.Object
    ServiceContextProvider
    Implements
    IServiceContextProvider
    Namespace: Copper.Service
    Assembly: Copper.Service.dll
    Syntax
    public class ServiceContextProvider : IServiceContextProvider

    Constructors

    View Source

    ServiceContextProvider(ServiceContext)

    Initializes a new instance of the ServiceContextProvider class.

    Declaration
    public ServiceContextProvider(ServiceContext serviceContext)
    Parameters
    Type Name Description
    ServiceContext serviceContext

    The service context.

    Properties

    View Source

    ApplicationName

    Gets the name of the application.

    Declaration
    public string ApplicationName { get; }
    Property Value
    Type Description
    System.String

    The name of the application.

    View Source

    ApplicationTypeName

    Gets the name of the application type.

    Declaration
    public string ApplicationTypeName { get; }
    Property Value
    Type Description
    System.String

    The name of the application type.

    View Source

    NodeName

    Gets the node name.

    Declaration
    public string NodeName { get; }
    Property Value
    Type Description
    System.String

    The node name.

    View Source

    PartitionId

    Gets the partition ID.

    Declaration
    public string PartitionId { get; }
    Property Value
    Type Description
    System.String

    The partition ID.

    View Source

    ReplicaOrInstanceId

    Gets the stateful service replica ID or the stateless service instance ID.

    Declaration
    public string ReplicaOrInstanceId { get; }
    Property Value
    Type Description
    System.String

    The stateful service replica ID or the stateless service instance ID.

    View Source

    ServiceName

    Gets the service name.

    Declaration
    public string ServiceName { get; }
    Property Value
    Type Description
    System.String

    The service name.

    View Source

    ServiceTypeName

    Gets the service type name.

    Declaration
    public string ServiceTypeName { get; }
    Property Value
    Type Description
    System.String

    The service type name.

    Implements

    IServiceContextProvider
    • View Source
    Back to top Generated by DocFX