|
1 |
| -/*****************************************************************`******************************************* |
| 1 | +using Elastacloud.AzureManagement.Fluent.Clients.Helpers; |
| 2 | +using Elastacloud.AzureManagement.Fluent.Clients.Interfaces; |
| 3 | +using Elastacloud.AzureManagement.Fluent.Commands.Services; |
| 4 | +using Elastacloud.AzureManagement.Fluent.Commands.VirtualMachines; |
| 5 | +using Elastacloud.AzureManagement.Fluent.Commands.VirtualNetworks; |
| 6 | +using Elastacloud.AzureManagement.Fluent.Helpers; |
| 7 | +using Elastacloud.AzureManagement.Fluent.Types; |
| 8 | +using Elastacloud.AzureManagement.Fluent.Types.Exceptions; |
| 9 | +using Elastacloud.AzureManagement.Fluent.Types.VirtualMachines; |
| 10 | +using Elastacloud.AzureManagement.Fluent.Types.VirtualNetworks; |
| 11 | +using Elastacloud.AzureManagement.Fluent.VirtualMachines.Classes; |
| 12 | +/*****************************************************************`******************************************* |
2 | 13 | * This software is distributed under a GNU Lesser License by Elastacloud Limited and it is free to *
|
3 | 14 | * modify and distribute providing the terms of the license are followed. From the root of the source the *
|
4 | 15 | * license can be found in /Resources/license.txt *
|
|
9 | 20 | using System;
|
10 | 21 | using System.Collections.Generic;
|
11 | 22 | using System.Diagnostics;
|
12 |
| -using System.IO; |
13 | 23 | using System.Linq;
|
14 |
| -using System.Net; |
15 | 24 | using System.Security.Cryptography.X509Certificates;
|
16 | 25 | using System.Threading;
|
17 | 26 | using System.Threading.Tasks;
|
18 |
| -using Elastacloud.AzureManagement.Fluent.Clients.Helpers; |
19 |
| -using Elastacloud.AzureManagement.Fluent.Clients.Interfaces; |
20 |
| -using Elastacloud.AzureManagement.Fluent.Commands.Blobs; |
21 |
| -using Elastacloud.AzureManagement.Fluent.Commands.Services; |
22 |
| -using Elastacloud.AzureManagement.Fluent.Commands.VirtualMachines; |
23 |
| -using Elastacloud.AzureManagement.Fluent.Commands.VirtualNetworks; |
24 |
| -using Elastacloud.AzureManagement.Fluent.Helpers; |
25 |
| -using Elastacloud.AzureManagement.Fluent.Types; |
26 |
| -using Elastacloud.AzureManagement.Fluent.Types.Exceptions; |
27 |
| -using Elastacloud.AzureManagement.Fluent.Types.VirtualMachines; |
28 |
| -using Elastacloud.AzureManagement.Fluent.Types.VirtualNetworks; |
29 |
| -using Elastacloud.AzureManagement.Fluent.VirtualMachines.Classes; |
30 | 27 |
|
31 | 28 | namespace Elastacloud.AzureManagement.Fluent.Clients
|
32 | 29 | {
|
@@ -583,7 +580,7 @@ public List<VmHost> GetHostDetails(string cloudServiceName)
|
583 | 580 | HostName = vm.RoleName,
|
584 | 581 | IpAddress = vm.IPAddress,
|
585 | 582 | RoleName = vm.RoleName,
|
586 |
| - Endpoints = vm.NetworkConfigurationSet.InputEndpoints |
| 583 | + Endpoints = vm.NetworkConfigurationSet.InputEndpoints.Endpoints.AsReadOnly() |
587 | 584 | }));
|
588 | 585 | return hosts;
|
589 | 586 | }
|
|
0 commit comments