Changeset 4694
- Timestamp:
- 10/31/10 03:40:09 (14 years ago)
- 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 1 1 2 2 using 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 }110 3 111 4 5 //D:\Source\HL\ClientManagement\HeuristicLab.Services.Authentication\HeuristicLab.Services.Authentication.DataAccess\ClientManagment.designer.cs 6 /* 7 public ClientManagmentDataContext() : 8 base(global::HeuristicLab.Services.Authentication.DataAccess.Properties.Settings.Default.ClientManagementConnectionString, mappingSource) { 9 OnCreated(); 10 } 11 */ 12 13 namespace HeuristicLab.Services.Authentication.AdminMethods { 14 15 public class AdminMethods { 112 16 113 17 } -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.AdminMethods/Program.cs
r4592 r4694 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Collections; 3 4 using System.Linq; 4 5 using System.Text; … … 22 23 //} 23 24 24 // delete25 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"));29 25 30 bool res; 26 //IEnumerable<Object> clientData = AM.GetClient("client_3"); 27 //foreach (Object o in clientData) { 28 // Console.WriteLine(o); 29 //} 31 30 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("==========="); 37 32 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")); 44 38 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 46 65 } 47 66 } -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/ClientManagment.dbml
r4592 r4694 2 2 <Table Name="" Member="Resources"> 3 3 <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" /> 5 5 <Column Name="Name" Type="System.String" CanBeNull="false" /> 6 6 <Column Name="Description" Type="System.String" CanBeNull="true" /> … … 10 10 <Type Name="Client" InheritanceCode="Client"> 11 11 <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="IPAdress e" 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" /> 16 16 <Column Name="OperatingSystem" Type="System.String" CanBeNull="true" /> 17 17 </Type> -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/ClientManagment.dbml.layout
r4592 r4694 15 15 </nestedChildShapes> 16 16 </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"> 18 18 <nodes> 19 19 <classShapeMoniker Id="ea129a98-d63f-4c3a-a3e8-dff64ad53c30" /> … … 27 27 </nestedChildShapes> 28 28 </classShape> 29 <inheritanceConnector edgePoints="[(3.1 4639176514791 : 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"> 30 30 <nodes> 31 31 <classShapeMoniker Id="ea129a98-d63f-4c3a-a3e8-dff64ad53c30" /> … … 39 39 </nestedChildShapes> 40 40 </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"> 42 42 <AssociationMoniker Name="/ClientManagmentDataContext/Resource/Resource_ResourceResourceGroup" /> 43 43 <nodes> … … 46 46 </nodes> 47 47 </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"> 49 49 <AssociationMoniker Name="/ClientManagmentDataContext/Resource/Resource_ResourceResourceGroup1" /> 50 50 <nodes> -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/ClientManagment.designer.cs
r4592 r4694 39 39 40 40 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 } 46 45 47 46 public ClientManagmentDataContext(string connection) : … … 128 127 } 129 128 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)] 131 130 public System.Guid ResourceID 132 131 { … … 284 283 private string _ProcessorType; 285 284 286 private System.Nullable<int>_NumberOfProcessors;287 288 private System.Nullable<int>_NumberOfThreads;289 290 private string _IPAdress e;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; 293 292 294 293 private string _OperatingSystem; … … 300 299 partial void OnProcessorTypeChanging(string value); 301 300 partial void OnProcessorTypeChanged(); 302 partial void OnNumberOfProcessorsChanging( System.Nullable<int>value);301 partial void OnNumberOfProcessorsChanging(string value); 303 302 partial void OnNumberOfProcessorsChanged(); 304 partial void OnNumberOfThreadsChanging( System.Nullable<int>value);303 partial void OnNumberOfThreadsChanging(string value); 305 304 partial void OnNumberOfThreadsChanged(); 306 partial void OnIPAdress eChanging(string value);307 partial void OnIPAdress eChanged();308 partial void OnMemorySizeChanging( System.Nullable<int>value);305 partial void OnIPAdressChanging(string value); 306 partial void OnIPAdressChanged(); 307 partial void OnMemorySizeChanging(string value); 309 308 partial void OnMemorySizeChanged(); 310 309 partial void OnOperatingSystemChanging(string value); … … 337 336 } 338 337 339 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfProcessors" , DbType="int")]340 public System.Nullable<int>NumberOfProcessors338 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfProcessors")] 339 public string NumberOfProcessors 341 340 { 342 341 get … … 358 357 359 358 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NumberOfThreads")] 360 public System.Nullable<int>NumberOfThreads359 public string NumberOfThreads 361 360 { 362 361 get … … 377 376 } 378 377 379 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IPAdress e")]380 public string IPAdress e381 { 382 get 383 { 384 return this._IPAdress e;385 } 386 set 387 { 388 if ((this._IPAdress e!= value))389 { 390 this.OnIPAdress eChanging(value);391 this.SendPropertyChanging(); 392 this._IPAdress e= value;393 this.SendPropertyChanged("IPAdress e");394 this.OnIPAdress eChanged();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(); 395 394 } 396 395 } … … 398 397 399 398 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MemorySize")] 400 public System.Nullable<int>MemorySize399 public string MemorySize 401 400 { 402 401 get -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataAccess/HeuristicLab.Services.Authentication.DataAccess.csproj
r4592 r4694 31 31 <WarningLevel>4</WarningLevel> 32 32 </PropertyGroup> 33 <PropertyGroup> 34 <SignAssembly>true</SignAssembly> 35 </PropertyGroup> 36 <PropertyGroup> 37 <AssemblyOriginatorKeyFile>HLAuthenticationDataAccess.pfx</AssemblyOriginatorKeyFile> 38 </PropertyGroup> 33 39 <ItemGroup> 34 40 <Reference Include="System" /> … … 61 67 <SubType>Designer</SubType> 62 68 </None> 69 <None Include="HLAuthenticationDataAccess.pfx" /> 63 70 <None Include="Properties\Settings.settings"> 64 71 <Generator>SettingsSingleFileGenerator</Generator> -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataTransfer/Client.cs
r4592 r4694 8 8 public string ProcessorType { get; set; } 9 9 10 public intNumberOfProcessors { get; set; }10 public string NumberOfProcessors { get; set; } 11 11 12 public intNumberOfThreads { get; set; }12 public string NumberOfThreads { get; set; } 13 13 14 public string IPAdress e{ get; set; }14 public string IPAdress { get; set; } 15 15 16 public intMemorySize { get; set; }16 public string MemorySize { get; set; } 17 17 18 18 public string OperatingSystem { get; set; } -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.DataTransfer/HeuristicLab.Services.Authentication.DataTransfer.csproj
r4592 r4694 31 31 <WarningLevel>4</WarningLevel> 32 32 </PropertyGroup> 33 <PropertyGroup> 34 <SignAssembly>true</SignAssembly> 35 </PropertyGroup> 36 <PropertyGroup> 37 <AssemblyOriginatorKeyFile>HLAuthenticationDataTransfer.pfx</AssemblyOriginatorKeyFile> 38 </PropertyGroup> 33 39 <ItemGroup> 34 40 <Reference Include="System" /> … … 53 59 </ProjectReference> 54 60 </ItemGroup> 61 <ItemGroup> 62 <None Include="HLAuthenticationDataTransfer.pfx" /> 63 </ItemGroup> 55 64 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 56 65 <!-- 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 14 14 public string ResourceType { get; set; } 15 15 16 public string ResourceGroup { get; set; } 17 16 18 public override string ToString() { 17 19 return (this.Name + "; Id= " + this.ResourceID + "; " + this.ResourceType); -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.sln
r4592 r4694 11 11 EndProject 12 12 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Authentication.AdminMethods", "HeuristicLab.Services.Authentication.AdminMethods\HeuristicLab.Services.Authentication.AdminMethods.csproj", "{2DC20235-6A91-4ABC-8E3E-660B43EAD23B}" 13 EndProject 14 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Authentication.UserInterface", "UserInterface\HeuristicLab.Services.Authentication.UserInterface.csproj", "{345CD2B9-F5A9-498C-A50C-79D41E449351}" 15 EndProject 16 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.DemoClient", "HLDemo\HeuristicLab.DemoClient\HeuristicLab.DemoClient.csproj", "{92119B2A-37FA-444B-8C68-61114BD041F4}" 17 EndProject 18 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.DemoService", "HLDemo\HeuristicLab.Services.DemoService\HeuristicLab.Services.DemoService.csproj", "{C1A05138-12F5-4B47-B32D-80A508D3073A}" 13 19 EndProject 14 20 Global … … 72 78 {2DC20235-6A91-4ABC-8E3E-660B43EAD23B}.Release|x86.ActiveCfg = Release|x86 73 79 {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 74 112 EndGlobalSection 75 113 GlobalSection(SolutionProperties) = preSolution -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication/Convert.cs
r4592 r4694 36 36 ResourceType = source.ResourceType, 37 37 ProcessorType = source.ProcessorType, 38 NumberOfProcessors = (int)source.NumberOfProcessors,39 NumberOfThreads = (int)source.NumberOfThreads,40 IPAdress e = source.IPAdresse,41 MemorySize = (int)source.MemorySize,38 NumberOfProcessors = source.NumberOfProcessors, 39 NumberOfThreads = source.NumberOfThreads, 40 IPAdress = source.IPAdress, 41 MemorySize = source.MemorySize, 42 42 OperatingSystem = source.OperatingSystem 43 43 }; … … 54 54 NumberOfProcessors = source.NumberOfProcessors, 55 55 NumberOfThreads = source.NumberOfThreads, 56 IPAdress e = source.IPAdresse,56 IPAdress = source.IPAdress, 57 57 MemorySize = source.MemorySize, 58 58 OperatingSystem = source.OperatingSystem … … 69 69 target.NumberOfProcessors = source.NumberOfProcessors; 70 70 target.NumberOfThreads = source.NumberOfThreads; 71 target.IPAdress e = source.IPAdresse;71 target.IPAdress = source.IPAdress; 72 72 target.MemorySize = source.MemorySize; 73 73 target.OperatingSystem = source.OperatingSystem; -
branches/ClientManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.csproj
r4592 r4694 31 31 <ErrorReport>prompt</ErrorReport> 32 32 <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> 33 42 </PropertyGroup> 34 43 <ItemGroup> … … 84 93 </ProjectReference> 85 94 </ItemGroup> 95 <ItemGroup> 96 <None Include="HLAuthentication.pfx" /> 97 </ItemGroup> 86 98 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 87 99 <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> -
branches/ClientManagement/HeuristicLab.Services.Authentication/Test/Program.cs
r4583 r4694 12 12 { 13 13 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 29 25 30 26 Client c = new Client(); … … 33 29 c.Name = "Eagle-Eye"; 34 30 c.Description = "Development-PC"; 35 c.IPAdress e= "192.168.0.1";31 c.IPAdress = "192.168.0.1"; 36 32 //c.ResourceType = "Client"; 37 33 ResourceGroup r = new ResourceGroup();
Note: See TracChangeset
for help on using the changeset viewer.