pub struct CodePackageActivationContext { /* private fields */ }
Implementations§
Source§impl CodePackageActivationContext
impl CodePackageActivationContext
pub fn create() -> Result<CodePackageActivationContext, Error>
pub fn get_endpoint_resource( &self, serviceendpointresourcename: &WString, ) -> Result<EndpointResourceDescription>
pub fn get_configuration_package( &self, configpackagename: &WString, ) -> Result<ConfigurationPackage>
pub fn get_code_package_info(&self) -> CodePackageInfo
pub fn get_code_package_names(&self) -> Vec<WString>
pub fn get_code_package(&self, name: &WString) -> Result<CodePackage>
Sourcepub fn report_application_health(
&self,
healthinfo: &HealthInformation,
send_options: Option<&HealthReportSendOption>,
) -> Result<()>
pub fn report_application_health( &self, healthinfo: &HealthInformation, send_options: Option<&HealthReportSendOption>, ) -> Result<()>
The health information describes the report details, like the source ID, the property, the health state and other relevant details. The code package activation context uses an internal health client to send the reports to the health store. The client optimizes messages to Health Manager by batching reports per a configured duration (Default: 30 seconds). If the report has high priority, you can specify send options to send it immediately.
Possible Errors: FABRIC_E_HEALTH_STALE_REPORT: HealthReport already exist for the same entity, SourceId and Property with same or higher SequenceNumber. FABRIC_E_HEALTH_MAX_REPORTS_REACHED: HeathClient has reached the maximum number of health reports that can accept for processing. More reports will be accepted when progress is done with the currently accepted reports. By default, the FabricClient.HealthClient can accept 10000 different reports.
pub fn get_com(&self) -> IFabricCodePackageActivationContext6
Sourcepub fn register_configuration_package_change_handler<T>(
&self,
handler: T,
) -> Result<ConfigurationPackageChangeCallbackHandle>where
T: Fn(&ConfigurationPackageChangeEvent) + 'static,
pub fn register_configuration_package_change_handler<T>(
&self,
handler: T,
) -> Result<ConfigurationPackageChangeCallbackHandle>where
T: Fn(&ConfigurationPackageChangeEvent) + 'static,
Register a configuration package change handler callback
Consider using [AutoConfigurationPackageChangeCallbackHandle::new
] instead of this directly.
pub fn unregister_configuration_package_change_handler( &self, handle: ConfigurationPackageChangeCallbackHandle, ) -> Result<()>
Trait Implementations§
Source§impl Clone for CodePackageActivationContext
impl Clone for CodePackageActivationContext
Source§fn clone(&self) -> CodePackageActivationContext
fn clone(&self) -> CodePackageActivationContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more