Export (0) Print
Expand All

RoleInstanceEndpoint Class

Updated: May 29, 2012

Represents an endpoint that is associated with a role instance.

Namespace: Microsoft.WindowsAzure.ServiceRuntime
Assembly: Microsoft.WindowsAzure.ServiceRuntime (in Microsoft.WindowsAzure.ServiceRuntime.dll)

Public MustInherit Class RoleInstanceEndpoint

Endpoints are used by role instances to communicate externally (InputEndpoint) with other applications and internally (InternalEndpoint) with other role instances. Endpoints are defined in the service model for the hosted service. For more information about defining endpoints, see Enabling Communication for Role Instances in Windows Azure and Windows Azure Service Definition Schema.

The following code example shows how to retrieve endpoint information from role instances:

foreach (var role in RoleEnvironment.Roles)
   foreach (var roleInst in role.Value.Instances)
      foreach (RoleInstanceEndpoint instanceEndpoint in roleInst.InstanceEndpoints.Values)
         Trace.WriteLine("Instance endpoint IP address and port:" + instanceEndpoint.IPEndpoint, "Information");


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Community Additions

© 2014 Microsoft