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
public field static TraceSource  

Top

Public Properties

  Name Description
public property static CurrentRoleInstance Gets a RoleInstance object that represents the role instance in which the code is currently running.
public property static DeploymentId Gets the unique identifier of the deployment in which the role instance is running.
public property static IsAvailable Indicates whether the role instance is running in the Windows Azure environment.
public property static IsEmulated Indicates whether the role instance is running in the Microsoft Azure compute emulator.
public property static Roles Gets the set of Role objects defined for the hosted service.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Equals  (Inherited from Object)
public methodstatic GetConfigurationSettingValue Retrieves the value of a setting in the service configuration file.
public method GetHashCode  (Inherited from Object)
public methodstatic GetLocalResource Retrieves a specified local storage resource.
public method GetType  (Inherited from Object)
public methodstatic RequestRecycle Requests that the current role instance be stopped and restarted.
public method ToString  (Inherited from Object)

Top

Protected Methods

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

Public Events

  Name Description
public event static Changed Occurs after a change to the service configuration is applied to the running instances of a role.
public event static Changing Occurs before a change to the service configuration is applied to the running instances of a role.
public event static 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.
public event static 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.
public event static StatusCheck Occurs at a regular interval to indicate the status of a role instance.
public event static 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