- Timestamp:
- 08/24/10 15:31:35 (14 years ago)
- Location:
- branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3
- Files:
-
- 1 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/SlaveGroupDtoList.cs
r4267 r4302 6 6 using HeuristicLab.Common; 7 7 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 8 using System.Runtime.Serialization; 8 9 9 10 namespace HeuristicLab.Hive.Contracts.BusinessObjects { 11 [CollectionDataContract] 10 12 public class SlaveGroupDtoList : ObservableList<SlaveGroupDto>, IDeepCloneable { 11 13 -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/HeuristicLab.Hive.Contracts-3.3.csproj
r4296 r4302 140 140 <Compile Include="MultiStream.cs" /> 141 141 <Compile Include="Interfaces\ISlaveFacade.cs" /> 142 <Compile Include="Interfaces\I ExecutionEngineFacade.cs" />142 <Compile Include="Interfaces\IClientFacade.cs" /> 143 143 <Compile Include="ResponseObjects\ResponseObject.cs" /> 144 144 <Compile Include="Interfaces\ISlaveManager.cs" /> -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/HiveRoles.cs
r4289 r4302 6 6 namespace HeuristicLab.Hive.Contracts { 7 7 public static class HiveRoles { 8 public const string Administrator = "Administrator"; 9 public const string Slave = "Slave"; 8 public const string Administrator = "Hive.Administrator"; 9 public const string Slave = "Hive.Slave"; 10 public const string Client = "Hive.Client"; 10 11 } 11 12 } -
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/WcfSettings.cs
r4285 r4302 8 8 using System.Security.Cryptography.X509Certificates; 9 9 using System.Net; 10 using System.ServiceModel.Description; 10 11 11 12 namespace HeuristicLab.Hive.Contracts { 12 13 public static class WcfSettings { 14 public const string SlaveServiceName = "SlaveService"; 15 public const string ServerConsoleServiceName = "ServerConsoleService"; 16 public const string ClientServiceName = "ClientService"; 13 17 14 public const string SERVERCERT = "HIVE-Server"; 15 public const int DEFAULTPORT = 9000; 18 public const int DefaultPort = 9000; 16 19 17 20 /// <summary> … … 74 77 /// <returns></returns> 75 78 public static IPAddress GetActiveIP() { 76 //return System.Net.NetworkInformation.IPGlobalProperties.GetIPGlobalProperties().GetActiveTcpConnections()[0].LocalEndPoint.Address.ToString(); 77 IPAddress[] addresses; 78 addresses = Dns.GetHostAddresses(Dns.GetHostName()); 79 int index = 0; 80 if (System.Environment.OSVersion.Version.Major >= 6) { 81 for (index = addresses.Length - 1; index >= 0; index--) 82 if (addresses[index].AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) 83 break; 84 } 85 return addresses[index]; 79 //return IPAddress.Parse("127.0.0.1"); 80 return System.Net.NetworkInformation.IPGlobalProperties.GetIPGlobalProperties().GetActiveTcpConnections()[0].LocalEndPoint.Address; 81 //IPAddress[] addresses; 82 //addresses = Dns.GetHostAddresses(Dns.GetHostName()); 83 //int index = 0; 84 //if (System.Environment.OSVersion.Version.Major >= 6) { 85 // for (index = addresses.Length - 1; index >= 0; index--) 86 // if (addresses[index].AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) 87 // break; 88 //} 89 //return addresses[index]; 86 90 } 87 91 … … 91 95 /// <returns></returns> 92 96 public static int GetDefaultPort() { 93 return DEFAULTPORT; 97 return DefaultPort; 98 } 99 100 /// <summary> 101 /// This method changes the endpoint-address while preserving the identity-certificate defined in the config file 102 /// </summary> 103 public static void SetEndpointAddress(ServiceEndpoint endpoint, string address) { 104 EndpointAddressBuilder builder = new EndpointAddressBuilder(endpoint.Address); 105 builder.Uri = new Uri(address); 106 endpoint.Address = builder.ToEndpointAddress(); 94 107 } 95 108 }
Note: See TracChangeset
for help on using the changeset viewer.