ICodePackageActivationContext Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents activation context for the Service Fabric activated service.
public interface ICodePackageActivationContext : IDisposable
type ICodePackageActivationContext = interface
interface IDisposable
Public Interface ICodePackageActivationContext
Implements IDisposable
- Derived
- Implements
Remarks
Includes information from the service manifest as well as information about the currently activated code package like work directory, context id etc.
Properties
ApplicationName |
Gets the application name. |
ApplicationTypeName |
Gets the application type name. |
CodePackageName |
Gets the name of the fabric activated code package. |
CodePackageVersion |
Gets the version of the fabric activated code package. |
ContextId |
Gets the context id. |
LogDirectory |
Gets the path to the Log directory that the application can use. |
TempDirectory |
Gets the path to the Temp directory that the application can use. |
WorkDirectory |
Gets the path to the Work directory that the application can use. |
Methods
GetApplicationPrincipals() |
Retrieves the principals defined in the application manifest. |
GetCodePackageNames() |
Retrieves the list of code package names in the service manifest. |
GetCodePackageObject(String) |
Returns the CodePackage object from Service Package that matches the desired package name. |
GetConfigurationPackageNames() |
Retrieves the list of configuration package names in the service manifest. |
GetConfigurationPackageObject(String) |
Returns the ConfigurationPackage object from Service Package that matches the desired package name. |
GetDataPackageNames() |
Retrieves the list of data package names in the service manifest. |
GetDataPackageObject(String) |
Returns the DataPackage object from Service Package that matches the desired package name. |
GetEndpoint(String) |
Retrieves the endpoint resource with a given name from the service manifest. |
GetEndpoints() |
Retrieves the endpoint resources in the service manifest. |
GetServiceGroupTypes() |
Retrieves the list of Service Group types in the service manifest. |
GetServiceManifestName() |
Retrieves the name of the service manifest. |
GetServiceManifestVersion() |
Retrieves the version of the service manifest. |
GetServiceTypes() |
Retrieves the list of Service types in the service manifest. |
ReportApplicationHealth(HealthInformation) |
Reports health for current application. |
ReportApplicationHealth(HealthInformation, HealthReportSendOptions) |
Reports health for current application. Specifies options to control how the report is sent. |
ReportDeployedApplicationHealth(HealthInformation) |
Reports health for current deployed application. |
ReportDeployedApplicationHealth(HealthInformation, HealthReportSendOptions) |
Reports health for current deployed application. Specifies options to control how the report is sent. |
ReportDeployedServicePackageHealth(HealthInformation) |
Reports health for current deployed service package. |
ReportDeployedServicePackageHealth(HealthInformation, HealthReportSendOptions) |
Reports health for current deployed service package. Specifies send options that control how the report is sent to the health store. |
Events
CodePackageAddedEvent |
Event raised when new CodePackage is added to the service manifest. |
CodePackageModifiedEvent |
Event raised when a CodePackage in the service manifest is modified. |
CodePackageRemovedEvent |
Event raised when a CodePackage is removed from the service manifest. |
ConfigurationPackageAddedEvent |
Event raised when new ConfigurationPackage is added to the service manifest. |
ConfigurationPackageModifiedEvent |
Event raised when a ConfigurationPackage in the service manifest is modified. |
ConfigurationPackageRemovedEvent |
Event raised when a ConfigurationPackage is removed from the service manifest. |
DataPackageAddedEvent |
Event raised when new DataPackage is added to the service manifest. |
DataPackageModifiedEvent |
Event raised when a DataPackage in the service manifest is modified. |
DataPackageRemovedEvent |
Event raised when a DataPackage is removed from the service manifest. |
Applies to
Azure SDK for .NET