Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/24/10 15:31:35 (14 years ago)
Author:
cneumuel
Message:
  • made ServerConsole work with wsHttpBinding
  • applied role-base restrictions to all WCF-Services
  • made wcf-services work with certificates
  • renamed ExecutionEngineFacade to ClientFacade

(#1168)

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  
    66using HeuristicLab.Common;
    77using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     8using System.Runtime.Serialization;
    89
    910namespace HeuristicLab.Hive.Contracts.BusinessObjects {
     11  [CollectionDataContract]
    1012  public class SlaveGroupDtoList : ObservableList<SlaveGroupDto>, IDeepCloneable {
    1113
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/HeuristicLab.Hive.Contracts-3.3.csproj

    r4296 r4302  
    140140    <Compile Include="MultiStream.cs" />
    141141    <Compile Include="Interfaces\ISlaveFacade.cs" />
    142     <Compile Include="Interfaces\IExecutionEngineFacade.cs" />
     142    <Compile Include="Interfaces\IClientFacade.cs" />
    143143    <Compile Include="ResponseObjects\ResponseObject.cs" />
    144144    <Compile Include="Interfaces\ISlaveManager.cs" />
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/HiveRoles.cs

    r4289 r4302  
    66namespace HeuristicLab.Hive.Contracts {
    77  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";
    1011  }
    1112}
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/WcfSettings.cs

    r4285 r4302  
    88using System.Security.Cryptography.X509Certificates;
    99using System.Net;
     10using System.ServiceModel.Description;
    1011
    1112namespace HeuristicLab.Hive.Contracts {
    1213  public static class WcfSettings {
     14    public const string SlaveServiceName = "SlaveService";
     15    public const string ServerConsoleServiceName = "ServerConsoleService";
     16    public const string ClientServiceName = "ClientService";
    1317
    14     public const string SERVERCERT = "HIVE-Server";
    15     public const int DEFAULTPORT = 9000;
     18    public const int DefaultPort = 9000;
    1619   
    1720    /// <summary>
     
    7477    /// <returns></returns>
    7578    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];
    8690    }
    8791
     
    9195    /// <returns></returns>
    9296    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();
    94107    }
    95108  }
Note: See TracChangeset for help on using the changeset viewer.