Guest User

Untitled

a guest
Jul 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. RoleEnvironment.CurrentRoleInstance.InstanceEndpoints
  2.  
  3. class Program
  4. {
  5. static void Main(string[] args)
  6. {
  7. FabricClient client = FabricClient.CreateFabricClient();
  8.  
  9. foreach (string tenantName in client.GetServiceDeployments())
  10. {
  11. var information = client.GetServiceInformation(tenantName);
  12. foreach (var item in information)
  13. {
  14. Console.WriteLine(string.Format("{0} {1} {2} {3}", item.ContractName, item.InterfaceName, item.UrlSpecification, item.Vip));
  15. }
  16. }
  17.  
  18. Console.ReadLine();
  19. }
  20. }
Add Comment
Please, Sign In to add comment