RoleEnvironment Members
Provides information about the configuration, endpoints, and status of running role instances.
The following tables list the members exposed by the RoleEnvironment type.
Public Fields
Name | Description | |
---|---|---|
TraceSource |
Top
Public Properties
Name | Description | |
---|---|---|
CurrentRoleInstance | Gets a RoleInstance object that represents the role instance in which the code is currently running. | |
DeploymentId | Gets the unique identifier of the deployment in which the role instance is running. | |
IsAvailable | Indicates whether the role instance is running in the Windows Azure environment. | |
IsEmulated | Indicates whether the role instance is running in the Microsoft Azure compute emulator. | |
Roles | Gets the set of Role objects defined for the hosted service. |
Top
Public Methods
(see also Protected Methods)
Name | Description | |
---|---|---|
Equals | (Inherited from Object) | |
GetConfigurationSettingValue | Retrieves the value of a setting in the service configuration file. | |
GetHashCode | (Inherited from Object) | |
GetLocalResource | Retrieves a specified local storage resource. | |
GetType | (Inherited from Object) | |
RequestRecycle | Requests that the current role instance be stopped and restarted. | |
ToString | (Inherited from Object) |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object) | |
MemberwiseClone | (Inherited from Object) |
Top
Public Events
Name | Description | |
---|---|---|
Changed | Occurs after a change to the service configuration is applied to the running instances of a role. | |
Changing | Occurs before a change to the service configuration is applied to the running instances of a role. | |
SimultaneousChanged | Occurs after a simultaneous change to the service configuration has been applied to the running instances of a role. A simultaneous change affects all role instances at the same time. | |
SimultaneousChanging | Occurs before a simultaneous change to the service configuration is applied to the running instances of a role. A simultaneous change affects all role instances at the same time. | |
StatusCheck | Occurs at a regular interval to indicate the status of a role instance. | |
Stopping | Occurs when a role instance is about to be stopped. |
Top
See Also
Reference
RoleEnvironment Class
Microsoft.WindowsAzure.ServiceRuntime Namespace
RoleEnvironmentChangedEventArgs
RoleEnvironmentConfigurationSettingChange
RoleEnvironmentChangingEventArgs
RoleInstanceStatusCheckEventArgs
RoleEnvironmentStoppingEventArgs