CodePackageActivationContext Class
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 the activation which contains information about a running code package in a Service Fabric application.
The GetActivationContext() and GetActivationContextAsync(TimeSpan, CancellationToken) methods can be used to get an instance of the activation context.
public class CodePackageActivationContext : IDisposable, System.Fabric.ICodePackageActivationContext3
type CodePackageActivationContext = class
interface ICodePackageActivationContext3
interface ICodePackageActivationContext2
interface ICodePackageActivationContext
interface IDisposable
Public Class CodePackageActivationContext
Implements ICodePackageActivationContext3, IDisposable
- Inheritance
-
CodePackageActivationContext
- Implements
Properties
ApplicationName |
Gets the name of the application. |
ApplicationTypeName |
Gets the name of the application type. |
CodePackageName |
Gets the name of the fabric activated code package. |
CodePackageVersion |
Gets the version of the fabric activated code package |
ContextId |
Gets the ID that represents the service package name qualified with Application package name. |
LogDirectory |
Gets the path to the log directory that the application can use. |
ServiceListenAddress |
The address at which the service should start the communication listener. |
ServicePublishAddress |
The address which the service should publish as the listen address. |
TempDirectory |
Gets the path to the Temp directory that the Application can use for temporary files. |
WorkDirectory |
Gets the path to the Work directory that the application can use to store data. For example: the state of the replicas. |
Methods
Dispose() |
Disposes of the code package activation context. |
Finalize() |
Performs cleanup operations on unmanaged resources held by the current object before the object is destroyed. |
GetApplicationPrincipals() |
Retrieves all the principals defined in the application manifest. |
GetCodePackage(String) |
Obsolete.
Retrieves the CodePackageDescription object by name. This method is obsolete. Use GetCodePackageObject(String). |
GetCodePackageNames() |
Retrieves the list of code package names in the service manifest. |
GetCodePackageObject(String) |
Retrieves the CodePackage object by name. |
GetConfigurationPackage(String) |
Obsolete.
Retrieves the ConfigurationPackageDescription object by name. This method is obsolete. Use GetConfigurationPackageObject(String). |
GetConfigurationPackageNames() |
Retrieves the list of configuration package names in the service manifest. |
GetConfigurationPackageObject(String) |
Retrieves the ConfigurationPackage object by name. |
GetDataPackage(String) |
Obsolete.
Retrieves the DataPackageDescription by name. This method is obsolete. Use GetDataPackageObject(String). |
GetDataPackageNames() |
Retrieves the list of data package names in the service manifest. |
GetDataPackageObject(String) |
Retrieves the DataPackage object by name. |
GetDirectory(String) |
Retrieves the directory path for the directory inside the work directory. |
GetEndpoint(String) |
Retrieves an EndpointResourceDescription by name. |
GetEndpoints() |
Retrieves all the end points 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. |
ReportDeployedServicePackageHealth(HealthInformation) |
Reports health for current deployed service package. |
ReportDeployedServicePackageHealth(HealthInformation, HealthReportSendOptions) |
Reports health for current deployed service package. |
Events
CodePackageAdded |
Obsolete.
Raised when a new code package is added to the service manifest. |
CodePackageAddedEvent |
Raised during an application upgrade when a new code package is added to the service manifest. |
CodePackageModified |
Obsolete.
Raised when an existing code package is modified in the service manifest. |
CodePackageModifiedEvent |
Raised during an application upgrade when an existing code package is modified in the service manifest. |
CodePackageRemoved |
Obsolete.
Raised when the code package is removed from the service manifest. |
CodePackageRemovedEvent |
Raised during an application upgrade when a code package is removed from the service manifest. |
ConfigurationPackageAdded |
Obsolete.
Raised when a new configuration package is added to the service manifest. |
ConfigurationPackageAddedEvent |
Raised during an application upgrade when a new configuration package is added to the service manifest. |
ConfigurationPackageModified |
Obsolete.
Raised when a configuration package is modified in the service manifest. |
ConfigurationPackageModifiedEvent |
Raised during an application upgrade when a configuration package is modified in the service manifest. |
ConfigurationPackageRemoved |
Obsolete.
Raised when a configuration package is removed from the service manifest. |
ConfigurationPackageRemovedEvent |
Raised during an application upgrade when a configuration package is removed from the service manifest. |
DataPackageAdded |
Obsolete.
Raised when a data package is added to the service manifest. |
DataPackageAddedEvent |
Raised during an application upgrade when a data package is added to the service manifest. |
DataPackageModified |
Obsolete.
Raised when a data package is modified in the service manifest. |
DataPackageModifiedEvent |
Raised during an application upgrade when a data package is modified in the service manifest. |
DataPackageRemoved |
Obsolete.
Raised when a data package is removed from the service manifest. |
DataPackageRemovedEvent |
Raised during an application upgrade when a data package is removed from the service manifest. |
Applies to
Azure SDK for .NET