Platform Symphony .NET API Reference - Version 5.0
ServiceContext Class
NamespacesPlatform.Symphony.SoamServiceContext
Provides functionality that the service will require throughout its lifetime.
Declaration Syntax
C#
public sealed class ServiceContext
Members
All MembersMethodsProperties



IconMemberDescription
ApplicationName
Gets the name of the application.

ConsumerId
Gets the consumer ID.

ControlCode
Sets a service control code for service instance manager.

DeployDirectory
Gets the deployment directory.

LastInterruptEvent
Gets the current interrupt event.

LogDirectory
Gets the log directory.

Publish(ResourceAttribute, Boolean)
Publishes the attribute to the system.

Publish(ResourceAttribute)
Publishes the attribute to the system.

ServiceName
Gets the service name.

ServiceToSlotRatio
Gets the service to slot ratio for this service instance, which indicates how many slots this service is consuming.

Unpublish(ResourceAttribute, Boolean)
Un-publishes the attribute from the system.

Unpublish(ResourceAttribute)
Un-publishes the attribute from the system.

Remarks
This object will be passed to a service instance when it is created. The service instance may choose to cache a reference to this object and call on it at anytime it requires.
Inheritance Hierarchy
Object
ServiceContext
See Also
[ServiceContainer.onCreateService]

Assembly: Platform.Symphony.Soam.Net (Module: Platform.Symphony.Soam.Net) Version: 5.0.0.0