Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RoleInstanceEndpoint Class

Represents an endpoint that is associated with a role instance.

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

public abstract 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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.