Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4694


Ignore:
Timestamp:
10/31/10 03:40:09 (13 years ago)
Author:
fruehrli
Message:

#1197
Administration methods updated
WinForm for administration added
Demo WebService added

Location:
branches/ClientManagement/HeuristicLab.Services.Authentication
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.AdminMethods/AdminMethods.cs

    r4592 r4694  
    11
    22using System;
    3 using System.Collections.Generic;
    4 using System.Linq;
    5 using System.Data.Linq;
    6 using System.Data.Linq.Mapping;
    7 using System.Text;
    8 
    9 using HeuristicLab.Services.Authentication.DataAccess;
    10 using HeuristicLab.Services.Authentication.DataTransfer;
    11 using HeuristicLab.Services.Authentication;
    12 using DA = HeuristicLab.Services.Authentication.DataAccess;
    13 using DT = HeuristicLab.Services.Authentication.DataTransfer;
    14 using HLSA = HeuristicLab.Services.Authentication;
    15 
    16 namespace HeuristicLab.Services.Authentication.AdminMethods {
    17   class AdminMethods {
    18 
    19     public static bool InsertClient(string name, string description, string resourceType, string processorType,
    20       int numberOfProcessors, int numberOfThreads, string ipAdresse, int memorySize, string operatingSystem) {     
    21       DT.Client c = new DT.Client();
    22       c.ResourceID = Guid.NewGuid();
    23       c.Name = name;     
    24       c.Description = description;
    25       //c.ResourceType = resourceType;
    26       c.ProcessorType = processorType;
    27       c.NumberOfProcessors = numberOfProcessors;
    28       c.NumberOfThreads = numberOfThreads;
    29       c.MemorySize = memorySize;     
    30       c.IPAdresse = ipAdresse;
    31       using (ClientManagmentDataContext cmdc = new ClientManagmentDataContext()) {
    32         if (cmdc.DatabaseExists()) {
    33           DA.Client clEntity = HLSA.Convert.ToEntity(c);
    34           cmdc.GetTable<DA.Resource>().InsertOnSubmit(clEntity);
    35           cmdc.SubmitChanges();
    36           return true;
    37         }
    38         return false;
    39       }   
    40     }
    41 
    42     public static bool InsertGroup(string name, string description, string resourceType) {
    43       DT.ResourceGroup g = new DT.ResourceGroup();
    44       g.ResourceID = Guid.NewGuid();
    45       g.Name = name;
    46       g.Description = description;
    47       //g.ResourceType = resourceType;
    48       using (ClientManagmentDataContext cmdc = new ClientManagmentDataContext()) {
    49         if (cmdc.DatabaseExists()) {
    50           DA.ResourceGroup gEntity = HLSA.Convert.ToEntity(g);
    51           cmdc.GetTable<DA.Resource>().InsertOnSubmit(gEntity);
    52           cmdc.SubmitChanges();
    53           return true;
    54         }
    55         return false;
    56       }
    57     }
    58 
    59     public static bool UpdateClient(string name, string description, string resourceType, string processorType,
    60       int numberOfProcessors, int numberOfThreads, string ipAdresse, int memorySize, string operatingSystem) {
    61      
    62       DT.Client uc = new DT.Client();
    63       uc.Name = name;
    64       uc.Description = description;
    65       //uc.ResourceType = resourceType;
    66       uc.ProcessorType = processorType;
    67       uc.NumberOfProcessors = numberOfProcessors;
    68       uc.NumberOfThreads = numberOfThreads;
    69       uc.MemorySize = memorySize;
    70       uc.IPAdresse = ipAdresse;
    71 
    72       using (ClientManagmentDataContext cmdc = new ClientManagmentDataContext()) {
    73         if (cmdc.DatabaseExists()) {
    74           DA.Resource entity = cmdc.GetTable<DA.Resource>().FirstOrDefault(x => x.Name == uc.Name);
    75           if (entity != null) {
    76             uc.ResourceID = entity.ResourceID;
    77             uc.ResourceType = entity.ResourceType;
    78             HLSA.Convert.ToEntity(uc, (DA.Client)entity);
    79             cmdc.SubmitChanges();
    80             return true;
    81           }
    82         }
    83       }
    84       return false;
    85     }
    86 
    87     public static string DeleteResource(string name) {
    88       using (ClientManagmentDataContext cmdc = new ClientManagmentDataContext()) {
    89         string data = "deleted nothing";
    90         if (cmdc.DatabaseExists()) {
    91           DA.Resource entity = cmdc.GetTable<DA.Resource>().FirstOrDefault(x => x.Name == name);
    92           if (entity != null) {           
    93             if (entity.ResourceType == "Client") {
    94               data = "deleted: ";
    95               data += (HLSA.Convert.ToDto((DA.Client)entity)).ToString();
    96               cmdc.GetTable<DA.Resource>().DeleteOnSubmit(entity);
    97             }
    98             else if (entity.ResourceType == "ResourceGroup") {
    99               data = "deleted: ";
    100               data += (HLSA.Convert.ToDto((DA.ResourceGroup)entity)).ToString();
    101               cmdc.GetTable<DA.Resource>().DeleteOnSubmit(entity);
    102             }
    103             else return data;
    104             cmdc.SubmitChanges();
    105           }
    106         }
    107         return data;
    108       }
    109     }
    1103
    1114
     5//D:\Source\HL\ClientManagement\HeuristicLab.Services.Authentication\HeuristicLab.Services.Authentication.DataAccess\ClientManagment.designer.cs
     6/*   
     7public ClientManagmentDataContext() :
     8      base(global::HeuristicLab.Services.Authentication.DataAccess.Properties.Settings.Default.ClientManagementConnectionString, mappingSource) {
     9      OnCreated();
     10    }
     11*/
     12
     13namespace HeuristicLab.Services.Authentication.AdminMethods { 
     14
     15  public class AdminMethods {
    11216
    11317  }
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.AdminMethods/Program.cs

    r4592 r4694  
    11using System;
    22using System.Collections.Generic;
     3using System.Collections;
    34using System.Linq;
    45using System.Text;
     
    2223      //}
    2324
    24       // delete
    25       Console.WriteLine(AM.DeleteResource("client_3"));
    26       Console.WriteLine(AM.DeleteResource("group_3"));
    27       Console.WriteLine(AM.DeleteResource("client_4"));
    28       Console.WriteLine(AM.DeleteResource("group_4"));
    2925
    30       bool res;
     26      //IEnumerable<Object> clientData = AM.GetClient("client_3");
     27      //foreach (Object o in clientData) {
     28      //  Console.WriteLine(o);
     29      //}
    3130
    32       // insert
    33       res = AM.InsertClient("client_3", "desc", "Client", "pt", 4, 4, "192.168.1.2", 2000, "WinXP");
    34       Console.WriteLine("client inserted: {0} ", res);
    35       res = AM.InsertGroup("group_3", "desc", "ResourceGroup");
    36       Console.WriteLine("group inserted: {0}", res);
     31      //Console.WriteLine("===========");
    3732
    38       //insert and update
    39       res = AM.InsertClient("client_4", "desc", "Client", "pt", 4, 4, "192.168.1.2", 2000, "WinXP");
    40       Console.WriteLine("client inserted: {0} ", res);
    41       res = AM.InsertGroup("group_4", "desc", "ResourceGroup");
    42       Console.WriteLine("group inserted: {0}", res);
    43       Console.WriteLine("updated: " + AM.UpdateClient("client_4", "desc_new2", "xxxx", "ptnew", 4, 4, "192.168.1.7", 3000, "WinXP"));
     33      //// delete
     34      //Console.WriteLine(AM.DeleteResource("client_3"));
     35      //Console.WriteLine(AM.DeleteResource("group_3"));
     36      //Console.WriteLine(AM.DeleteResource("client_4"));
     37      //Console.WriteLine(AM.DeleteResource("group_4"));
    4438
    45       Console.ReadLine();
     39      //bool res;
     40
     41      //// insert
     42      //res = AM.InsertClient("client_3", "desc", "Client", "pt", 4, 4, "192.168.1.2", 2000, "WinXP");
     43      //Console.WriteLine("client inserted: {0} ", res);
     44      //res = AM.InsertGroup("group_3", "desc", "ResourceGroup");
     45      //Console.WriteLine("group inserted: {0}", res);
     46
     47      ////insert and update
     48      //res = AM.InsertClient("client_4", "desc", "Client", "pt", 4, 4, "192.168.1.2", 2000, "WinXP");
     49      //Console.WriteLine("client inserted: {0} ", res);
     50      //res = AM.CreateGroup("group_1", "desc", "ResourceGroup");
     51      //Console.WriteLine("group inserted: {0}", res);
     52      //Console.WriteLine("updated: " + AM.UpdateClient("client_4", "desc_new2", "xxxx", "ptnew", 4, 4, "192.168.1.7", 3000, "WinXP"));
     53
     54      //Console.ReadLine();
     55
     56      //Hashtable ht = new Hashtable();
     57      //ht[eClient.ResourceID] = "";
     58      ////ht[eClient.ResourceIDGroup] = "";
     59      //ht[eClient.Name] = "Group11";
     60      //ht[eClient.Description] = "beschr3";
     61      ////ht[eClient.ResourceType] = "Group";
     62
     63      //AM.CreateGroup(ht);
     64
    4665    }
    4766  }
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/ClientManagment.dbml

    r4592 r4694  
    22  <Table Name="" Member="Resources">
    33    <Type Name="Resource" InheritanceCode="Resource" IsInheritanceDefault="true">
    4       <Column Name="ResourceID" AutoSync="Never" Type="System.Guid" IsPrimaryKey="true" IsDbGenerated="true" CanBeNull="false" />
     4      <Column Name="ResourceID" AutoSync="OnInsert" Type="System.Guid" IsPrimaryKey="true" CanBeNull="false" />
    55      <Column Name="Name" Type="System.String" CanBeNull="false" />
    66      <Column Name="Description" Type="System.String" CanBeNull="true" />
     
    1010      <Type Name="Client" InheritanceCode="Client">
    1111        <Column Name="ProcessorType" Type="System.String" CanBeNull="true" />
    12         <Column Name="NumberOfProcessors" Type="System.Int32" DbType="int" CanBeNull="true" />
    13         <Column Name="NumberOfThreads" Type="System.Int32" CanBeNull="true" />
    14         <Column Name="IPAdresse" Type="System.String" CanBeNull="true" />
    15         <Column Name="MemorySize" Type="System.Int32" CanBeNull="true" />
     12        <Column Name="NumberOfProcessors" Type="System.String" CanBeNull="true" />
     13        <Column Name="NumberOfThreads" Type="System.String" CanBeNull="true" />
     14        <Column Name="IPAdress" Type="System.String" CanBeNull="true" />
     15        <Column Name="MemorySize" Type="System.String" CanBeNull="true" />
    1616        <Column Name="OperatingSystem" Type="System.String" CanBeNull="true" />
    1717      </Type>
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/ClientManagment.dbml.layout

    r4592 r4694  
    1515      </nestedChildShapes>
    1616    </classShape>
    17     <inheritanceConnector edgePoints="[(2.86155808614238 : 2.67484781901042); (2.86155808614238 : 3.5); (1.75 : 3.5); (1.75 : 3.875)]" fixedFrom="NotFixed" fixedTo="NotFixed" TargetRelationshipDomainClassId="7a7fe09e-e9ef-4b01-9ff3-bde95e827b62">
     17    <inheritanceConnector edgePoints="[(3.125 : 2.67484781901042); (3.125 : 3.5); (1.75 : 3.5); (1.75 : 3.875)]" fixedFrom="NotFixed" fixedTo="NotFixed" TargetRelationshipDomainClassId="7a7fe09e-e9ef-4b01-9ff3-bde95e827b62">
    1818      <nodes>
    1919        <classShapeMoniker Id="ea129a98-d63f-4c3a-a3e8-dff64ad53c30" />
     
    2727      </nestedChildShapes>
    2828    </classShape>
    29     <inheritanceConnector edgePoints="[(3.14639176514791 : 2.67484781901042); (3.14639176514791 : 3.5); (4.625 : 3.5); (4.625 : 3.875)]" fixedFrom="NotFixed" fixedTo="NotFixed" TargetRelationshipDomainClassId="7a7fe09e-e9ef-4b01-9ff3-bde95e827b62">
     29    <inheritanceConnector edgePoints="[(3.125 : 2.67484781901042); (3.125 : 3.5); (4.625 : 3.5); (4.625 : 3.875)]" fixedFrom="NotFixed" fixedTo="NotFixed" TargetRelationshipDomainClassId="7a7fe09e-e9ef-4b01-9ff3-bde95e827b62">
    3030      <nodes>
    3131        <classShapeMoniker Id="ea129a98-d63f-4c3a-a3e8-dff64ad53c30" />
     
    3939      </nestedChildShapes>
    4040    </classShape>
    41     <associationConnector edgePoints="[(4.125 : 1.84699625651042); (5.125 : 1.84699625651042)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     41    <associationConnector edgePoints="[(4.125 : 2.01147048950195); (5.125 : 2.01147048950195)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    4242      <AssociationMoniker Name="/ClientManagmentDataContext/Resource/Resource_ResourceResourceGroup" />
    4343      <nodes>
     
    4646      </nodes>
    4747    </associationConnector>
    48     <associationConnector edgePoints="[(4.125 : 1.48599812825521); (5.125 : 1.48599812825521)]" fixedFrom="NotFixed" fixedTo="NotFixed">
     48    <associationConnector edgePoints="[(4.125 : 1.56823524475098); (5.125 : 1.56823524475098)]" fixedFrom="NotFixed" fixedTo="NotFixed">
    4949      <AssociationMoniker Name="/ClientManagmentDataContext/Resource/Resource_ResourceResourceGroup1" />
    5050      <nodes>
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/ClientManagment.designer.cs

    r4592 r4694  
    3939
    4040
    41     public ClientManagmentDataContext() :
    42         base(@"Data Source=nb-1\sqlexpress;Initial Catalog=HeuristicLab.ClientManagment;Integrated Security=SSPI;", mappingSource)
    43     {
    44       OnCreated();
    45     }
     41    public ClientManagmentDataContext() :
     42      base(global::HeuristicLab.Services.Authentication.DataAccess.Properties.Settings.Default.ClientManagementConnectionString, mappingSource) {
     43      OnCreated();
     44    }
    4645
    4746    public ClientManagmentDataContext(string connection) :
     
    128127    }
    129128   
    130     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceID", IsPrimaryKey=true, IsDbGenerated=true)]
     129    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ResourceID", AutoSync=AutoSync.OnInsert, IsPrimaryKey=true)]
    131130    public System.Guid ResourceID
    132131    {
     
    284283    private string _ProcessorType;
    285284   
    286     private System.Nullable<int> _NumberOfProcessors;
    287    
    288     private System.Nullable<int> _NumberOfThreads;
    289    
    290     private string _IPAdresse;
    291    
    292     private System.Nullable<int> _MemorySize;
     285    private string _NumberOfProcessors;
     286   
     287    private string _NumberOfThreads;
     288   
     289    private string _IPAdress;
     290   
     291    private string _MemorySize;
    293292   
    294293    private string _OperatingSystem;
     
    300299    partial void OnProcessorTypeChanging(string value);
    301300    partial void OnProcessorTypeChanged();
    302     partial void OnNumberOfProcessorsChanging(System.Nullable<int> value);
     301    partial void OnNumberOfProcessorsChanging(string value);
    303302    partial void OnNumberOfProcessorsChanged();
    304     partial void OnNumberOfThreadsChanging(System.Nullable<int> value);
     303    partial void OnNumberOfThreadsChanging(string value);
    305304    partial void OnNumberOfThreadsChanged();
    306     partial void OnIPAdresseChanging(string value);
    307     partial void OnIPAdresseChanged();
    308     partial void OnMemorySizeChanging(System.Nullable<int> value);
     305    partial void OnIPAdressChanging(string value);
     306    partial void OnIPAdressChanged();
     307    partial void OnMemorySizeChanging(string value);
    309308    partial void OnMemorySizeChanged();
    310309    partial void OnOperatingSystemChanging(string value);
     
    337336    }
    338337   
    339     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfProcessors", DbType="int")]
    340     public System.Nullable<int> NumberOfProcessors
     338    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfProcessors")]
     339    public string NumberOfProcessors
    341340    {
    342341      get
     
    358357   
    359358    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfThreads")]
    360     public System.Nullable<int> NumberOfThreads
     359    public string NumberOfThreads
    361360    {
    362361      get
     
    377376    }
    378377   
    379     [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IPAdresse")]
    380     public string IPAdresse
    381     {
    382       get
    383       {
    384         return this._IPAdresse;
    385       }
    386       set
    387       {
    388         if ((this._IPAdresse != value))
    389         {
    390           this.OnIPAdresseChanging(value);
    391           this.SendPropertyChanging();
    392           this._IPAdresse = value;
    393           this.SendPropertyChanged("IPAdresse");
    394           this.OnIPAdresseChanged();
     378    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IPAdress")]
     379    public string IPAdress
     380    {
     381      get
     382      {
     383        return this._IPAdress;
     384      }
     385      set
     386      {
     387        if ((this._IPAdress != value))
     388        {
     389          this.OnIPAdressChanging(value);
     390          this.SendPropertyChanging();
     391          this._IPAdress = value;
     392          this.SendPropertyChanged("IPAdress");
     393          this.OnIPAdressChanged();
    395394        }
    396395      }
     
    398397   
    399398    [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemorySize")]
    400     public System.Nullable<int> MemorySize
     399    public string MemorySize
    401400    {
    402401      get
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/HeuristicLab.Services.Authentication.DataAccess.csproj

    r4592 r4694  
    3131    <WarningLevel>4</WarningLevel>
    3232  </PropertyGroup>
     33  <PropertyGroup>
     34    <SignAssembly>true</SignAssembly>
     35  </PropertyGroup>
     36  <PropertyGroup>
     37    <AssemblyOriginatorKeyFile>HLAuthenticationDataAccess.pfx</AssemblyOriginatorKeyFile>
     38  </PropertyGroup>
    3339  <ItemGroup>
    3440    <Reference Include="System" />
     
    6167      <SubType>Designer</SubType>
    6268    </None>
     69    <None Include="HLAuthenticationDataAccess.pfx" />
    6370    <None Include="Properties\Settings.settings">
    6471      <Generator>SettingsSingleFileGenerator</Generator>
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataTransfer/Client.cs

    r4592 r4694  
    88    public string ProcessorType { get; set; }
    99
    10     public int NumberOfProcessors { get; set; }
     10    public string NumberOfProcessors { get; set; }
    1111
    12     public int NumberOfThreads { get; set; }
     12    public string NumberOfThreads { get; set; }
    1313
    14     public string IPAdresse { get; set; }
     14    public string IPAdress { get; set; }
    1515
    16     public int MemorySize { get; set; }
     16    public string MemorySize { get; set; }
    1717
    1818    public string OperatingSystem { get; set; }
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataTransfer/HeuristicLab.Services.Authentication.DataTransfer.csproj

    r4592 r4694  
    3131    <WarningLevel>4</WarningLevel>
    3232  </PropertyGroup>
     33  <PropertyGroup>
     34    <SignAssembly>true</SignAssembly>
     35  </PropertyGroup>
     36  <PropertyGroup>
     37    <AssemblyOriginatorKeyFile>HLAuthenticationDataTransfer.pfx</AssemblyOriginatorKeyFile>
     38  </PropertyGroup>
    3339  <ItemGroup>
    3440    <Reference Include="System" />
     
    5359    </ProjectReference>
    5460  </ItemGroup>
     61  <ItemGroup>
     62    <None Include="HLAuthenticationDataTransfer.pfx" />
     63  </ItemGroup>
    5564  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    5665  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataTransfer/Resource.cs

    r4592 r4694  
    1414    public string ResourceType { get; set; }
    1515
     16    public string ResourceGroup { get; set; }
     17
    1618    public override string ToString() {
    1719      return (this.Name + "; Id= " + this.ResourceID + "; " + this.ResourceType);
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.sln

    r4592 r4694  
    1111EndProject
    1212Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Authentication.AdminMethods", "HeuristicLab.Services.Authentication.AdminMethods\HeuristicLab.Services.Authentication.AdminMethods.csproj", "{2DC20235-6A91-4ABC-8E3E-660B43EAD23B}"
     13EndProject
     14Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Authentication.UserInterface", "UserInterface\HeuristicLab.Services.Authentication.UserInterface.csproj", "{345CD2B9-F5A9-498C-A50C-79D41E449351}"
     15EndProject
     16Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.DemoClient", "HLDemo\HeuristicLab.DemoClient\HeuristicLab.DemoClient.csproj", "{92119B2A-37FA-444B-8C68-61114BD041F4}"
     17EndProject
     18Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.DemoService", "HLDemo\HeuristicLab.Services.DemoService\HeuristicLab.Services.DemoService.csproj", "{C1A05138-12F5-4B47-B32D-80A508D3073A}"
    1319EndProject
    1420Global
     
    7278    {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Release|x86.ActiveCfg = Release|x86
    7379    {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Release|x86.Build.0 = Release|x86
     80    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|Any CPU.ActiveCfg = Debug|x86
     81    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
     82    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|Mixed Platforms.Build.0 = Debug|x86
     83    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|x86.ActiveCfg = Debug|x86
     84    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Debug|x86.Build.0 = Debug|x86
     85    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|Any CPU.ActiveCfg = Release|x86
     86    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|Mixed Platforms.ActiveCfg = Release|x86
     87    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|Mixed Platforms.Build.0 = Release|x86
     88    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|x86.ActiveCfg = Release|x86
     89    {345CD2B9-F5A9-498C-A50C-79D41E449351}.Release|x86.Build.0 = Release|x86
     90    {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
     91    {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
     92    {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
     93    {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
     94    {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|x86.ActiveCfg = Debug|x86
     95    {92119B2A-37FA-444B-8C68-61114BD041F4}.Debug|x86.Build.0 = Debug|x86
     96    {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
     97    {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|Any CPU.Build.0 = Release|Any CPU
     98    {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
     99    {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|Mixed Platforms.Build.0 = Release|Any CPU
     100    {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|x86.ActiveCfg = Release|x86
     101    {92119B2A-37FA-444B-8C68-61114BD041F4}.Release|x86.Build.0 = Release|x86
     102    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
     103    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|Any CPU.Build.0 = Debug|Any CPU
     104    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
     105    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
     106    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Debug|x86.ActiveCfg = Debug|Any CPU
     107    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|Any CPU.ActiveCfg = Release|Any CPU
     108    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|Any CPU.Build.0 = Release|Any CPU
     109    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
     110    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
     111    {C1A05138-12F5-4B47-B32D-80A508D3073A}.Release|x86.ActiveCfg = Release|Any CPU
    74112  EndGlobalSection
    75113  GlobalSection(SolutionProperties) = preSolution
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication/Convert.cs

    r4592 r4694  
    3636        ResourceType = source.ResourceType,
    3737        ProcessorType = source.ProcessorType,
    38         NumberOfProcessors = (int)source.NumberOfProcessors,
    39         NumberOfThreads = (int)source.NumberOfThreads,
    40         IPAdresse = source.IPAdresse,
    41         MemorySize = (int)source.MemorySize,
     38        NumberOfProcessors = source.NumberOfProcessors,
     39        NumberOfThreads = source.NumberOfThreads,
     40        IPAdress = source.IPAdress,
     41        MemorySize = source.MemorySize,
    4242        OperatingSystem = source.OperatingSystem
    4343      };
     
    5454        NumberOfProcessors = source.NumberOfProcessors,
    5555        NumberOfThreads = source.NumberOfThreads,
    56         IPAdresse = source.IPAdresse,
     56        IPAdress = source.IPAdress,
    5757        MemorySize = source.MemorySize,
    5858        OperatingSystem = source.OperatingSystem
     
    6969        target.NumberOfProcessors = source.NumberOfProcessors;
    7070        target.NumberOfThreads = source.NumberOfThreads;
    71         target.IPAdresse = source.IPAdresse;
     71        target.IPAdress = source.IPAdress;
    7272        target.MemorySize = source.MemorySize;
    7373        target.OperatingSystem = source.OperatingSystem;
  • branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.csproj

    r4592 r4694  
    3131    <ErrorReport>prompt</ErrorReport>
    3232    <WarningLevel>4</WarningLevel>
     33  </PropertyGroup>
     34  <PropertyGroup>
     35    <SignAssembly>true</SignAssembly>
     36  </PropertyGroup>
     37  <PropertyGroup>
     38    <AssemblyOriginatorKeyFile>HLAuthentication.pfx</AssemblyOriginatorKeyFile>
     39  </PropertyGroup>
     40  <PropertyGroup>
     41    <DelaySign>false</DelaySign>
    3342  </PropertyGroup>
    3443  <ItemGroup>
     
    8493    </ProjectReference>
    8594  </ItemGroup>
     95  <ItemGroup>
     96    <None Include="HLAuthentication.pfx" />
     97  </ItemGroup>
    8698  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
    8799  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
  • branches/ClientManagement/HeuristicLab.Services.Authentication/Test/Program.cs

    r4583 r4694  
    1212        {
    1313
    14             ClientManagmentDataContext dc = new ClientManagmentDataContext(@"Data Source=eagle-eye\sqlexpress;Initial Catalog=ClientManagment;Integrated Security=SSPI;");
    15          
    16            
    17            
    18             //if (dc.DatabaseExists())
    19             //{
    20             //    Console.WriteLine("DB exsits");
    21             //    dc.DeleteDatabase();
    22             //    Console.WriteLine("DB deleted");
    23             //}
    24             //Console.WriteLine("DB create");
    25             //dc.CreateDatabase();
    26             //Console.WriteLine("Finished");
    27            
    28            
     14            ClientManagmentDataContext dc = new ClientManagmentDataContext(@"Data Source=nb-1\sqlexpress;Initial Catalog=HeuristicLab.ClientManagment;Integrated Security=SSPI;");
     15         
     16            if (dc.DatabaseExists()) {
     17              Console.WriteLine("DB exsits");
     18              dc.DeleteDatabase();
     19              Console.WriteLine("DB deleted");
     20            }
     21            Console.WriteLine("DB create");
     22            dc.CreateDatabase();
     23            Console.WriteLine("Finished");
     24                     
    2925           
    3026            Client c = new Client();
     
    3329            c.Name = "Eagle-Eye";
    3430            c.Description = "Development-PC";
    35             c.IPAdresse = "192.168.0.1";
     31            c.IPAdress = "192.168.0.1";
    3632            //c.ResourceType = "Client";
    3733            ResourceGroup r = new ResourceGroup();
Note: See TracChangeset for help on using the changeset viewer.