Class ServiceContextProvider
Provides a set of properties relating to a service's context.
Inheritance
System.Object
ServiceContextProvider
Implements
Namespace: Copper.Service
Assembly: Copper.Service.dll
Syntax
public class ServiceContextProvider : IServiceContextProvider
Constructors
View SourceServiceContextProvider(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 SourceApplicationName
Gets the name of the application.
Declaration
public string ApplicationName { get; }
Property Value
Type | Description |
---|---|
System.String | The name of the application. |
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. |
NodeName
Gets the node name.
Declaration
public string NodeName { get; }
Property Value
Type | Description |
---|---|
System.String | The node name. |
PartitionId
Gets the partition ID.
Declaration
public string PartitionId { get; }
Property Value
Type | Description |
---|---|
System.String | The partition ID. |
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. |
ServiceName
Gets the service name.
Declaration
public string ServiceName { get; }
Property Value
Type | Description |
---|---|
System.String | The service name. |
ServiceTypeName
Gets the service type name.
Declaration
public string ServiceTypeName { get; }
Property Value
Type | Description |
---|---|
System.String | The service type name. |