ServiceContext Class

Definition

The service context that the service is operating under.

public abstract class ServiceContext
type ServiceContext = class
Public MustInherit Class ServiceContext
Inheritance
ServiceContext
Derived

Constructors

ServiceContext(NodeContext, ICodePackageActivationContext, String, Uri, Byte[], Guid, Int64)

Initializes a new instance of the ServiceContext class.

Properties

CodePackageActivationContext

Gets the code package activation context, which contains information from the service manifest and the currently activated code package, like work directory, context ID etc.

InitializationData

Gets the initialization data of the service.

ListenAddress

The address at which the service should start the communication listener.

NodeContext

Gets the node context with information about the node where the service replica is instantiated.

PartitionId

Gets the partition ID.

PublishAddress

The address which the service should publish as the listen address.

ReplicaOrInstanceId

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

ServiceName

Get the service name.

ServiceTypeName

Gets the service type name.

TraceId

Gets the trace ID of the service.

Applies to