- Timestamp:
- 02/29/12 17:41:18 (13 years ago)
- Location:
- branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3
- Files:
-
- 6 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/AccessClient.cs
r7436 r7536 48 48 public void Refresh() { 49 49 usersAndGroups = new ItemList<UserGroupBase>(); 50 usersAndGroups.AddRange(Call RunCreationService<ItemList<UserGroupBase>>(s => new ItemList<UserGroupBase>(s.GetAllLeightweightUsersAndGroups())));50 usersAndGroups.AddRange(CallAccessService<ItemList<UserGroupBase>>(s => new ItemList<UserGroupBase>(s.GetAllLeightweightUsersAndGroups()))); 51 51 } 52 52 public void RefreshAsync(Action<Exception> exceptionCallback) { … … 108 108 109 109 #region Helpers 110 public static void Call RunCreationService(Action<IAccessService> call) {110 public static void CallAccessService(Action<IAccessService> call) { 111 111 AccessServiceClient client = ClientFactory.CreateClient<AccessServiceClient, IAccessService>(); 112 112 try { … … 122 122 } 123 123 } 124 public static T Call RunCreationService<T>(Func<IAccessService, T> call) {124 public static T CallAccessService<T>(Func<IAccessService, T> call) { 125 125 AccessServiceClient client = ClientFactory.CreateClient<AccessServiceClient, IAccessService>(); 126 126 try { -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ClientInformation.cs
r7534 r7536 61 61 62 62 try { 63 AccessClient.Call RunCreationService(x => clientInfo = x.GetClient(clientId));63 AccessClient.CallAccessService(x => clientInfo = x.GetClient(clientId)); 64 64 if (clientInfo != null) 65 65 clientExists = true; -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ClientInformationUtils.cs
r7534 r7536 21 21 22 22 using System; 23 using System.Diagnostics; 23 24 using System.Management; 25 using System.Reflection; 24 26 using HeuristicLab.Algorithms.Benchmarks; 25 27 using HeuristicLab.Data; … … 28 30 namespace HeuristicLab.Clients.Access { 29 31 public static class ClientInformationUtils { 32 33 public static Client CollectClientInformation() { 34 Client client = new Client(); 35 OperatingSystem os = new OperatingSystem(); 36 ClientType cType = new ClientType(); 37 cType.Name = "HLClient"; 38 39 client.Id = GetUniqueMachineId(); 40 client.HeuristicLabVersion = GetHLVersion(); 41 client.Name = GetMachineName(); 42 client.MemorySize = GetPhysicalMemory().GetValueOrDefault(); 43 client.NumberOfCores = GetNumberOfCores(); 44 os.Name = GetOperatingSystem(); 45 client.OperatingSystem = os; 46 client.ProcessorType = GetCpuInfo(); 47 client.ClientType = cType; 48 //client.ClientConfiguration = GetClientConfiguration(); 49 client.Timestamp = DateTime.Now; 50 client.PerformanceValue = RunBenchmark(); 51 52 return client; 53 } 54 55 public static string GetClientConfiguration() { 56 //TODO: does it make sense to send the client configuration to the server? for what do we need this? 57 return string.Empty; 58 } 59 60 public static string GetHLVersion() { 61 FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location); 62 return versionInfo.FileVersion; 63 } 30 64 31 65 public static int GetNumberOfCores() { … … 67 101 /// returns CPU frequence of the machine in Mhz 68 102 /// </summary> 69 public static int? GetCpuSpeed() { 70 return (int)GetWMIValue("Win32_Processor", "MaxClockSpeed"); 103 public static string GetCpuInfo() { 104 string name = GetWMIString("Win32_Processor", "Name"); 105 string manufacturer = GetWMIString("Win32_Processor", "Manufacturer"); 106 return manufacturer + " " + name; 71 107 } 72 108 … … 153 189 } 154 190 191 private static string GetWMIString(string clazz, string property) { 192 ManagementClass mgtClass = new ManagementClass(clazz); 193 ManagementObjectCollection mgtCol = mgtClass.GetInstances(); 194 195 foreach (ManagementObject mgtObj in mgtCol) { 196 foreach (var prop in mgtObj.Properties) { 197 if (prop.Value != null && prop.Name == property) { 198 try { 199 return prop.Value.ToString(); 200 } 201 catch { 202 return string.Empty; 203 } 204 } 205 } 206 } 207 return string.Empty; 208 } 209 155 210 public static double RunBenchmark() { 156 211 Linpack linpack = new Linpack(); -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ClientViews/ClientView.Designer.cs
r7534 r7536 1 namespace HeuristicLab.Clients.Access .ClientViews{1 namespace HeuristicLab.Clients.Access { 2 2 partial class ClientView { 3 3 /// <summary> … … 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 components = new System.ComponentModel.Container(); 26 this.label1 = new System.Windows.Forms.Label(); 27 this.label2 = new System.Windows.Forms.Label(); 28 this.label3 = new System.Windows.Forms.Label(); 29 this.label4 = new System.Windows.Forms.Label(); 30 this.label5 = new System.Windows.Forms.Label(); 31 this.label6 = new System.Windows.Forms.Label(); 32 this.label7 = new System.Windows.Forms.Label(); 33 this.label8 = new System.Windows.Forms.Label(); 34 this.label9 = new System.Windows.Forms.Label(); 35 this.label10 = new System.Windows.Forms.Label(); 36 this.label11 = new System.Windows.Forms.Label(); 37 this.txtName = new System.Windows.Forms.TextBox(); 38 this.txtDescription = new System.Windows.Forms.TextBox(); 39 this.txtVersion = new System.Windows.Forms.TextBox(); 40 this.txtTimestamp = new System.Windows.Forms.TextBox(); 41 this.txtMemory = new System.Windows.Forms.TextBox(); 42 this.txtNumberOfCores = new System.Windows.Forms.TextBox(); 43 this.txtClientType = new System.Windows.Forms.TextBox(); 44 this.txtClientConfiguration = new System.Windows.Forms.TextBox(); 45 this.txtProcessor = new System.Windows.Forms.TextBox(); 46 this.txtOS = new System.Windows.Forms.TextBox(); 47 this.txtPerformanceValue = new System.Windows.Forms.TextBox(); 48 this.label13 = new System.Windows.Forms.Label(); 49 this.txtId = new System.Windows.Forms.TextBox(); 50 this.SuspendLayout(); 51 // 52 // label1 53 // 54 this.label1.AutoSize = true; 55 this.label1.Location = new System.Drawing.Point(3, 6); 56 this.label1.Name = "label1"; 57 this.label1.Size = new System.Drawing.Size(38, 13); 58 this.label1.TabIndex = 0; 59 this.label1.Text = "Name:"; 60 // 61 // label2 62 // 63 this.label2.AutoSize = true; 64 this.label2.Location = new System.Drawing.Point(3, 32); 65 this.label2.Name = "label2"; 66 this.label2.Size = new System.Drawing.Size(63, 13); 67 this.label2.TabIndex = 1; 68 this.label2.Text = "Description:"; 69 // 70 // label3 71 // 72 this.label3.AutoSize = true; 73 this.label3.Location = new System.Drawing.Point(3, 58); 74 this.label3.Name = "label3"; 75 this.label3.Size = new System.Drawing.Size(62, 13); 76 this.label3.TabIndex = 2; 77 this.label3.Text = "HL Version:"; 78 // 79 // label4 80 // 81 this.label4.AutoSize = true; 82 this.label4.Location = new System.Drawing.Point(3, 84); 83 this.label4.Name = "label4"; 84 this.label4.Size = new System.Drawing.Size(47, 13); 85 this.label4.TabIndex = 3; 86 this.label4.Text = "Memory:"; 87 // 88 // label5 89 // 90 this.label5.AutoSize = true; 91 this.label5.Location = new System.Drawing.Point(3, 110); 92 this.label5.Name = "label5"; 93 this.label5.Size = new System.Drawing.Size(61, 13); 94 this.label5.TabIndex = 4; 95 this.label5.Text = "Timestamp:"; 96 // 97 // label6 98 // 99 this.label6.AutoSize = true; 100 this.label6.Location = new System.Drawing.Point(3, 136); 101 this.label6.Name = "label6"; 102 this.label6.Size = new System.Drawing.Size(62, 13); 103 this.label6.TabIndex = 5; 104 this.label6.Text = "CPU Cores:"; 105 // 106 // label7 107 // 108 this.label7.AutoSize = true; 109 this.label7.Location = new System.Drawing.Point(3, 162); 110 this.label7.Name = "label7"; 111 this.label7.Size = new System.Drawing.Size(57, 13); 112 this.label7.TabIndex = 6; 113 this.label7.Text = "Processor:"; 114 // 115 // label8 116 // 117 this.label8.AutoSize = true; 118 this.label8.Location = new System.Drawing.Point(3, 188); 119 this.label8.Name = "label8"; 120 this.label8.Size = new System.Drawing.Size(36, 13); 121 this.label8.TabIndex = 7; 122 this.label8.Text = "Client:"; 123 // 124 // label9 125 // 126 this.label9.AutoSize = true; 127 this.label9.Location = new System.Drawing.Point(3, 214); 128 this.label9.Name = "label9"; 129 this.label9.Size = new System.Drawing.Size(63, 13); 130 this.label9.TabIndex = 8; 131 this.label9.Text = "OS Version:"; 132 // 133 // label10 134 // 135 this.label10.AutoSize = true; 136 this.label10.Location = new System.Drawing.Point(3, 240); 137 this.label10.Name = "label10"; 138 this.label10.Size = new System.Drawing.Size(101, 13); 139 this.label10.TabIndex = 9; 140 this.label10.Text = "Client Configuration:"; 141 // 142 // label11 143 // 144 this.label11.AutoSize = true; 145 this.label11.Location = new System.Drawing.Point(3, 266); 146 this.label11.Name = "label11"; 147 this.label11.Size = new System.Drawing.Size(100, 13); 148 this.label11.TabIndex = 10; 149 this.label11.Text = "Performance Value:"; 150 // 151 // txtName 152 // 153 this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 154 | System.Windows.Forms.AnchorStyles.Right))); 155 this.txtName.Location = new System.Drawing.Point(110, 3); 156 this.txtName.Name = "txtName"; 157 this.txtName.Size = new System.Drawing.Size(265, 20); 158 this.txtName.TabIndex = 12; 159 // 160 // txtDescription 161 // 162 this.txtDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 163 | System.Windows.Forms.AnchorStyles.Right))); 164 this.txtDescription.Location = new System.Drawing.Point(111, 29); 165 this.txtDescription.Name = "txtDescription"; 166 this.txtDescription.Size = new System.Drawing.Size(264, 20); 167 this.txtDescription.TabIndex = 13; 168 // 169 // txtVersion 170 // 171 this.txtVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 172 | System.Windows.Forms.AnchorStyles.Right))); 173 this.txtVersion.Location = new System.Drawing.Point(111, 55); 174 this.txtVersion.Name = "txtVersion"; 175 this.txtVersion.Size = new System.Drawing.Size(264, 20); 176 this.txtVersion.TabIndex = 14; 177 // 178 // txtTimestamp 179 // 180 this.txtTimestamp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 181 | System.Windows.Forms.AnchorStyles.Right))); 182 this.txtTimestamp.Location = new System.Drawing.Point(110, 107); 183 this.txtTimestamp.Name = "txtTimestamp"; 184 this.txtTimestamp.Size = new System.Drawing.Size(265, 20); 185 this.txtTimestamp.TabIndex = 15; 186 // 187 // txtMemory 188 // 189 this.txtMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 190 | System.Windows.Forms.AnchorStyles.Right))); 191 this.txtMemory.Location = new System.Drawing.Point(110, 81); 192 this.txtMemory.Name = "txtMemory"; 193 this.txtMemory.Size = new System.Drawing.Size(265, 20); 194 this.txtMemory.TabIndex = 16; 195 // 196 // txtNumberOfCores 197 // 198 this.txtNumberOfCores.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 199 | System.Windows.Forms.AnchorStyles.Right))); 200 this.txtNumberOfCores.Location = new System.Drawing.Point(110, 133); 201 this.txtNumberOfCores.Name = "txtNumberOfCores"; 202 this.txtNumberOfCores.Size = new System.Drawing.Size(265, 20); 203 this.txtNumberOfCores.TabIndex = 17; 204 // 205 // txtClientType 206 // 207 this.txtClientType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 208 | System.Windows.Forms.AnchorStyles.Right))); 209 this.txtClientType.Location = new System.Drawing.Point(111, 185); 210 this.txtClientType.Name = "txtClientType"; 211 this.txtClientType.Size = new System.Drawing.Size(264, 20); 212 this.txtClientType.TabIndex = 18; 213 // 214 // txtClientConfiguration 215 // 216 this.txtClientConfiguration.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 217 | System.Windows.Forms.AnchorStyles.Right))); 218 this.txtClientConfiguration.Location = new System.Drawing.Point(110, 237); 219 this.txtClientConfiguration.Name = "txtClientConfiguration"; 220 this.txtClientConfiguration.Size = new System.Drawing.Size(265, 20); 221 this.txtClientConfiguration.TabIndex = 19; 222 // 223 // txtProcessor 224 // 225 this.txtProcessor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 226 | System.Windows.Forms.AnchorStyles.Right))); 227 this.txtProcessor.Location = new System.Drawing.Point(111, 159); 228 this.txtProcessor.Name = "txtProcessor"; 229 this.txtProcessor.Size = new System.Drawing.Size(264, 20); 230 this.txtProcessor.TabIndex = 20; 231 // 232 // txtOS 233 // 234 this.txtOS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 235 | System.Windows.Forms.AnchorStyles.Right))); 236 this.txtOS.Location = new System.Drawing.Point(111, 211); 237 this.txtOS.Name = "txtOS"; 238 this.txtOS.Size = new System.Drawing.Size(264, 20); 239 this.txtOS.TabIndex = 21; 240 // 241 // txtPerformanceValue 242 // 243 this.txtPerformanceValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 244 | System.Windows.Forms.AnchorStyles.Right))); 245 this.txtPerformanceValue.Location = new System.Drawing.Point(110, 263); 246 this.txtPerformanceValue.Name = "txtPerformanceValue"; 247 this.txtPerformanceValue.Size = new System.Drawing.Size(265, 20); 248 this.txtPerformanceValue.TabIndex = 23; 249 // 250 // label13 251 // 252 this.label13.AutoSize = true; 253 this.label13.Location = new System.Drawing.Point(3, 292); 254 this.label13.Name = "label13"; 255 this.label13.Size = new System.Drawing.Size(48, 13); 256 this.label13.TabIndex = 24; 257 this.label13.Text = "Client Id:"; 258 // 259 // txtId 260 // 261 this.txtId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 262 | System.Windows.Forms.AnchorStyles.Right))); 263 this.txtId.Location = new System.Drawing.Point(111, 289); 264 this.txtId.Name = "txtId"; 265 this.txtId.Size = new System.Drawing.Size(264, 20); 266 this.txtId.TabIndex = 25; 267 // 268 // ClientView 269 // 270 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 27 271 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 272 this.Controls.Add(this.txtId); 273 this.Controls.Add(this.label13); 274 this.Controls.Add(this.txtPerformanceValue); 275 this.Controls.Add(this.txtOS); 276 this.Controls.Add(this.txtProcessor); 277 this.Controls.Add(this.txtClientConfiguration); 278 this.Controls.Add(this.txtClientType); 279 this.Controls.Add(this.txtNumberOfCores); 280 this.Controls.Add(this.txtMemory); 281 this.Controls.Add(this.txtTimestamp); 282 this.Controls.Add(this.txtVersion); 283 this.Controls.Add(this.txtDescription); 284 this.Controls.Add(this.txtName); 285 this.Controls.Add(this.label11); 286 this.Controls.Add(this.label10); 287 this.Controls.Add(this.label9); 288 this.Controls.Add(this.label8); 289 this.Controls.Add(this.label7); 290 this.Controls.Add(this.label6); 291 this.Controls.Add(this.label5); 292 this.Controls.Add(this.label4); 293 this.Controls.Add(this.label3); 294 this.Controls.Add(this.label2); 295 this.Controls.Add(this.label1); 296 this.Name = "ClientView"; 297 this.Size = new System.Drawing.Size(378, 315); 298 this.ResumeLayout(false); 299 this.PerformLayout(); 300 28 301 } 29 302 30 303 #endregion 304 305 protected System.Windows.Forms.Label label1; 306 protected System.Windows.Forms.Label label2; 307 protected System.Windows.Forms.Label label3; 308 protected System.Windows.Forms.Label label4; 309 protected System.Windows.Forms.Label label5; 310 protected System.Windows.Forms.Label label6; 311 protected System.Windows.Forms.Label label7; 312 protected System.Windows.Forms.Label label8; 313 protected System.Windows.Forms.Label label9; 314 protected System.Windows.Forms.Label label10; 315 protected System.Windows.Forms.Label label11; 316 protected System.Windows.Forms.TextBox txtName; 317 protected System.Windows.Forms.TextBox txtDescription; 318 protected System.Windows.Forms.TextBox txtVersion; 319 protected System.Windows.Forms.TextBox txtTimestamp; 320 protected System.Windows.Forms.TextBox txtMemory; 321 protected System.Windows.Forms.TextBox txtNumberOfCores; 322 protected System.Windows.Forms.TextBox txtClientType; 323 protected System.Windows.Forms.TextBox txtClientConfiguration; 324 protected System.Windows.Forms.TextBox txtProcessor; 325 protected System.Windows.Forms.TextBox txtOS; 326 protected System.Windows.Forms.TextBox txtPerformanceValue; 327 protected System.Windows.Forms.Label label13; 328 protected System.Windows.Forms.TextBox txtId; 329 31 330 } 32 331 } -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ClientViews/ClientView.cs
r7534 r7536 23 23 using HeuristicLab.MainForm; 24 24 25 namespace HeuristicLab.Clients.Access .ClientViews{25 namespace HeuristicLab.Clients.Access { 26 26 [View("Client View")] 27 27 [Content(typeof(Client), true)] 28 28 public partial class ClientView : ItemView { 29 public new Client Content { 30 get { return (Client)base.Content; } 31 set { base.Content = value; } 32 } 33 29 34 public ClientView() { 30 35 InitializeComponent(); 31 36 } 37 38 protected override void OnContentChanged() { 39 base.OnContentChanged(); 40 41 if (Content == null) { 42 txtClientConfiguration.Text = string.Empty; 43 txtClientType.Text = string.Empty; 44 txtDescription.Text = string.Empty; 45 txtMemory.Text = string.Empty; 46 txtName.Text = string.Empty; 47 txtNumberOfCores.Text = string.Empty; 48 txtPerformanceValue.Text = string.Empty; 49 txtProcessor.Text = string.Empty; 50 txtTimestamp.Text = string.Empty; 51 txtVersion.Text = string.Empty; 52 txtId.Text = string.Empty; 53 txtOS.Text = string.Empty; 54 } else { 55 if (Content.ClientConfiguration != null) { 56 txtClientConfiguration.Text = Content.ClientConfiguration.Description; //?? 57 } 58 if (Content.ClientType != null) { 59 txtClientType.Text = Content.ClientType.Name; 60 } 61 if (Content.OperatingSystem != null) { 62 txtOS.Text = Content.OperatingSystem.Name; 63 } 64 txtDescription.Text = Content.Description; 65 txtMemory.Text = Content.MemorySize.ToString(); 66 txtName.Text = Content.Name; 67 txtNumberOfCores.Text = Content.NumberOfCores.ToString(); 68 txtPerformanceValue.Text = Content.PerformanceValue.ToString(); 69 txtProcessor.Text = Content.ProcessorType; 70 txtTimestamp.Text = Content.Timestamp.ToShortDateString(); 71 txtVersion.Text = Content.HeuristicLabVersion; 72 txtId.Text = Content.Id.ToString(); 73 } 74 } 32 75 } 33 76 } -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/HeuristicLab.Clients.Access-3.3.csproj
r7534 r7536 102 102 <Compile Include="ClientInformation.cs" /> 103 103 <Compile Include="ClientInformationUtils.cs" /> 104 <Compile Include="ClientViews\ClientInformationDialog.cs"> 105 <SubType>Form</SubType> 106 </Compile> 107 <Compile Include="ClientViews\ClientInformationDialog.Designer.cs"> 108 <DependentUpon>ClientInformationDialog.cs</DependentUpon> 109 </Compile> 110 <Compile Include="ClientViews\ClientRegistrationDialog.cs"> 111 <SubType>Form</SubType> 112 </Compile> 113 <Compile Include="ClientViews\ClientRegistrationDialog.Designer.cs"> 114 <DependentUpon>ClientRegistrationDialog.cs</DependentUpon> 115 </Compile> 104 116 <Compile Include="ClientViews\ClientView.cs"> 105 117 <SubType>UserControl</SubType> … … 107 119 <Compile Include="ClientViews\ClientView.Designer.cs"> 108 120 <DependentUpon>ClientView.cs</DependentUpon> 121 </Compile> 122 <Compile Include="ClientViews\AdminClientView.cs"> 123 <SubType>UserControl</SubType> 124 </Compile> 125 <Compile Include="ClientViews\AdminClientView.Designer.cs"> 126 <DependentUpon>AdminClientView.cs</DependentUpon> 109 127 </Compile> 110 128 <Compile Include="MenuItems\ClientInfoMenuItem.cs" /> … … 162 180 <None Include="UpdateLocalInstallation.cmd" /> 163 181 </ItemGroup> 164 <ItemGroup />165 182 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 166 183 <PropertyGroup> -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/MenuItems/ClientInfoMenuItem.cs
r7534 r7536 32 32 } 33 33 public override void Execute() { 34 // MainFormManager.MainForm.ShowContent(HiveClient.Instance); 34 if (ClientInformation.Instance.ClientExists) { 35 using (ClientInformationDialog dialog = new ClientInformationDialog()) { 36 dialog.ShowDialog(); 37 } 38 } else { 39 using (ClientRegistrationDialog regDialog = new ClientRegistrationDialog()) { 40 regDialog.ShowDialog(); 41 } 42 } 35 43 } 36 44 public override int Position { -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ServiceClients/AccessServiceClient.cs
r7534 r7536 1084 1084 1085 1085 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/AddClient", ReplyAction = "http://tempuri.org/IAccessService/AddClientResponse")] 1086 System.Guid AddClient(HeuristicLab.Clients.Access.Client client);1086 void AddClient(HeuristicLab.Clients.Access.Client client); 1087 1087 1088 1088 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IAccessService/UpdateClient", ReplyAction = "http://tempuri.org/IAccessService/UpdateClientResponse")] … … 1297 1297 } 1298 1298 1299 public System.Guid AddClient(HeuristicLab.Clients.Access.Client client) {1300 returnbase.Channel.AddClient(client);1299 public void AddClient(HeuristicLab.Clients.Access.Client client) { 1300 base.Channel.AddClient(client); 1301 1301 } 1302 1302 -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/UserInformation.cs
r7534 r7536 83 83 84 84 try { 85 AccessClient.Call RunCreationService(x => user = x.Login());86 AccessClient.Call RunCreationService(x => groups = x.GetGroupsOfCurrentUser());87 AccessClient.Call RunCreationService(x => roles = x.GetRolesOfCurrentUser());85 AccessClient.CallAccessService(x => user = x.Login()); 86 AccessClient.CallAccessService(x => groups = x.GetGroupsOfCurrentUser()); 87 AccessClient.CallAccessService(x => roles = x.GetRolesOfCurrentUser()); 88 88 errorOccured = false; 89 89 userExists = true;
Note: See TracChangeset
for help on using the changeset viewer.