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.
| 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 Windows Azure compute emulator. |
|
Roles | Gets the set of Role objects defined for the hosted service. |
(see also Protected Methods)
Top
| 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) |
| Name | Description | |
|---|---|---|
|
Finalize | (Inherited from Object) |
|
MemberwiseClone | (Inherited from Object) |
| 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. |
|
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. |