Changeset 4390
- Timestamp:
- 09/14/10 17:24:54 (14 years ago)
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB/HeuristicLab.Clients.OKB-3.3/AdministrationView.Designer.cs
r4388 r4390 47 47 this.components = new System.ComponentModel.Container(); 48 48 this.dataGridView1 = new System.Windows.Forms.DataGridView(); 49 this.idDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); 50 this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); 51 this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); 52 this.algorithmClassBindingSource = new System.Windows.Forms.BindingSource(this.components); 49 53 this.refreshButton = new System.Windows.Forms.Button(); 50 54 this.saveButton = new System.Windows.Forms.Button(); 51 55 this.tabControl1 = new System.Windows.Forms.TabControl(); 52 56 this.tabPage1 = new System.Windows.Forms.TabPage(); 57 this.populateButton = new System.Windows.Forms.Button(); 53 58 this.tabPage2 = new System.Windows.Forms.TabPage(); 54 59 this.dataGridView2 = new System.Windows.Forms.DataGridView(); 55 this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();56 this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();57 this.algorithmClassBindingSource = new System.Windows.Forms.BindingSource(this.components);58 60 this.idDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); 59 61 this.algorithmClassIdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); … … 66 68 this.algorithmBindingSource = new System.Windows.Forms.BindingSource(this.components); 67 69 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); 70 ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).BeginInit(); 68 71 this.tabControl1.SuspendLayout(); 69 72 this.tabPage1.SuspendLayout(); 70 73 this.tabPage2.SuspendLayout(); 71 74 ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); 72 ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).BeginInit();73 75 ((System.ComponentModel.ISupportInitialize)(this.algorithmBindingSource)).BeginInit(); 74 76 this.SuspendLayout(); … … 83 85 this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 84 86 this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { 87 this.idDataGridViewTextBoxColumn1, 85 88 this.nameDataGridViewTextBoxColumn, 86 89 this.descriptionDataGridViewTextBoxColumn}); … … 90 93 this.dataGridView1.Size = new System.Drawing.Size(707, 368); 91 94 this.dataGridView1.TabIndex = 0; 92 this.dataGridView1.ColumnHeaderMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_ColumnHeaderMouseClick); 95 this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit); 96 this.dataGridView1.UserAddedRow += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_UserAddedRow); 97 this.dataGridView1.UserDeletedRow += new System.Windows.Forms.DataGridViewRowEventHandler(this.dataGridView1_UserDeletedRow); 98 // 99 // idDataGridViewTextBoxColumn1 100 // 101 this.idDataGridViewTextBoxColumn1.DataPropertyName = "Id"; 102 this.idDataGridViewTextBoxColumn1.HeaderText = "Id"; 103 this.idDataGridViewTextBoxColumn1.Name = "idDataGridViewTextBoxColumn1"; 104 this.idDataGridViewTextBoxColumn1.ReadOnly = true; 105 this.idDataGridViewTextBoxColumn1.Width = 41; 106 // 107 // nameDataGridViewTextBoxColumn 108 // 109 this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name"; 110 this.nameDataGridViewTextBoxColumn.HeaderText = "Name"; 111 this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn"; 112 this.nameDataGridViewTextBoxColumn.Width = 60; 113 // 114 // descriptionDataGridViewTextBoxColumn 115 // 116 this.descriptionDataGridViewTextBoxColumn.DataPropertyName = "Description"; 117 this.descriptionDataGridViewTextBoxColumn.HeaderText = "Description"; 118 this.descriptionDataGridViewTextBoxColumn.Name = "descriptionDataGridViewTextBoxColumn"; 119 this.descriptionDataGridViewTextBoxColumn.Width = 85; 120 // 121 // algorithmClassBindingSource 122 // 123 this.algorithmClassBindingSource.DataSource = typeof(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass); 124 this.algorithmClassBindingSource.Sort = ""; 93 125 // 94 126 // refreshButton … … 129 161 this.tabPage1.Controls.Add(this.dataGridView1); 130 162 this.tabPage1.Controls.Add(this.refreshButton); 163 this.tabPage1.Controls.Add(this.populateButton); 131 164 this.tabPage1.Controls.Add(this.saveButton); 132 165 this.tabPage1.Location = new System.Drawing.Point(4, 22); … … 137 170 this.tabPage1.Text = "tabPage1"; 138 171 this.tabPage1.UseVisualStyleBackColor = true; 172 // 173 // populateButton 174 // 175 this.populateButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 176 this.populateButton.Location = new System.Drawing.Point(168, 380); 177 this.populateButton.Name = "populateButton"; 178 this.populateButton.Size = new System.Drawing.Size(75, 23); 179 this.populateButton.TabIndex = 1; 180 this.populateButton.Text = "&Populate"; 181 this.populateButton.UseVisualStyleBackColor = true; 182 this.populateButton.Click += new System.EventHandler(this.populateButton_Click); 139 183 // 140 184 // tabPage2 … … 168 212 this.dataGridView2.TabIndex = 0; 169 213 // 170 // nameDataGridViewTextBoxColumn171 //172 this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";173 this.nameDataGridViewTextBoxColumn.HeaderText = "Name";174 this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";175 this.nameDataGridViewTextBoxColumn.Width = 60;176 //177 // descriptionDataGridViewTextBoxColumn178 //179 this.descriptionDataGridViewTextBoxColumn.DataPropertyName = "Description";180 this.descriptionDataGridViewTextBoxColumn.HeaderText = "Description";181 this.descriptionDataGridViewTextBoxColumn.Name = "descriptionDataGridViewTextBoxColumn";182 this.descriptionDataGridViewTextBoxColumn.Width = 85;183 //184 // algorithmClassBindingSource185 //186 this.algorithmClassBindingSource.DataSource = typeof(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass);187 this.algorithmClassBindingSource.Sort = "";188 //189 214 // idDataGridViewTextBoxColumn 190 215 // … … 247 272 this.Size = new System.Drawing.Size(727, 435); 248 273 ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); 274 ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).EndInit(); 249 275 this.tabControl1.ResumeLayout(false); 250 276 this.tabPage1.ResumeLayout(false); 251 277 this.tabPage2.ResumeLayout(false); 252 278 ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit(); 253 ((System.ComponentModel.ISupportInitialize)(this.algorithmClassBindingSource)).EndInit();254 279 ((System.ComponentModel.ISupportInitialize)(this.algorithmBindingSource)).EndInit(); 255 280 this.ResumeLayout(false); … … 262 287 private System.Windows.Forms.Button refreshButton; 263 288 private System.Windows.Forms.Button saveButton; 264 private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;265 private System.Windows.Forms.DataGridViewTextBoxColumn descriptionDataGridViewTextBoxColumn;266 289 private System.Windows.Forms.BindingSource algorithmClassBindingSource; 267 290 private System.Windows.Forms.TabControl tabControl1; … … 278 301 private System.Windows.Forms.DataGridViewTextBoxColumn platformDataGridViewTextBoxColumn; 279 302 private System.Windows.Forms.BindingSource algorithmBindingSource; 303 private System.Windows.Forms.Button populateButton; 304 private System.Windows.Forms.DataGridViewTextBoxColumn idDataGridViewTextBoxColumn1; 305 private System.Windows.Forms.DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn; 306 private System.Windows.Forms.DataGridViewTextBoxColumn descriptionDataGridViewTextBoxColumn; 280 307 281 308 } -
branches/OKB/HeuristicLab.Clients.OKB-3.3/AdministrationView.cs
r4388 r4390 26 26 using System.ComponentModel; 27 27 using System.Collections.Generic; 28 using System.Data; 29 using System; 28 30 29 31 namespace HeuristicLab.Clients.OKB { 30 32 [View("OKB Administration")] 31 33 public partial class AdministrationView : HeuristicLab.MainForm.WindowsForms.View { 34 List<AlgorithmClass> data; 35 32 36 public AdministrationView() { 33 37 InitializeComponent(); … … 36 40 private void refreshButton_Click(object sender, System.EventArgs e) { 37 41 IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>(); 38 algorithmClassBindingSource.DataSource = adminService.GetAlgorithmClasses(); 42 data = adminService.GetAlgorithmClasses(); 43 algorithmClassBindingSource.DataSource = data; 39 44 } 40 45 41 46 private void saveButton_Click(object sender, System.EventArgs e) { 42 47 IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>(); 43 adminService.UpdateAlgorithmClasses((List<AlgorithmClass>)algorithmClassBindingSource.DataSource);44 48 } 45 49 46 private void dataGridView1_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { 47 if (dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection == SortOrder.None) { 48 dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection = SortOrder.Ascending; 49 dataGridView1.Sort(dataGridView1.Columns[e.ColumnIndex], ListSortDirection.Ascending); 50 } else if (dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection == SortOrder.Ascending) { 51 dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection = SortOrder.Descending; 52 dataGridView1.Sort(dataGridView1.Columns[e.ColumnIndex], ListSortDirection.Descending); 53 } else { 54 dataGridView1.Columns[e.ColumnIndex].HeaderCell.SortGlyphDirection = SortOrder.Ascending; 55 dataGridView1.Sort(dataGridView1.Columns[e.ColumnIndex], ListSortDirection.Ascending); 56 } 50 private void populateButton_Click(object sender, System.EventArgs e) { 51 IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>(); 52 for (int i = 0; i < 100; i++) 53 adminService.AddAlgorithmClass(new AlgorithmClass() { Name = Guid.NewGuid().ToString() }); 54 } 55 56 private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) { 57 IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>(); 58 adminService.UpdateAlgorithmClass(data[e.RowIndex]); 59 } 60 61 private void dataGridView1_UserAddedRow(object sender, DataGridViewRowEventArgs e) { 62 IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>(); 63 adminService.AddAlgorithmClass(new AlgorithmClass() { 64 Name = (string)e.Row.Cells["Name"].Value, 65 Description = (string)e.Row.Cells["Description"].Value 66 }); 67 } 68 69 private void dataGridView1_UserDeletedRow(object sender, DataGridViewRowEventArgs e) { 70 IAdminService adminService = ClientFactory.CreateClient<AdminServiceClient, IAdminService>(); 71 adminService.DeleteAlgorithmClass((long)e.Row.Cells["Id"].Value); 57 72 } 58 73 } -
branches/OKB/HeuristicLab.Clients.OKB-3.3/AdministrationView.resx
r4388 r4390 124 124 <value>228, 17</value> 125 125 </metadata> 126 <metadata name="algorithmBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 127 <value>228, 17</value> 128 </metadata> 126 129 </root> -
branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/Reference.cs
r4388 r4390 5007 5007 void UpdateCompleteProblem(HeuristicLab.Clients.OKB.OKBAdmin.Problem problem); 5008 5008 5009 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAdminService/AddAlgorithmClass", ReplyAction="http://tempuri.org/IAdminService/AddAlgorithmClassResponse")] 5010 void AddAlgorithmClass(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass algorithmClass); 5011 5009 5012 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAdminService/GetAlgorithmClasses", ReplyAction="http://tempuri.org/IAdminService/GetAlgorithmClassesResponse")] 5010 5013 System.Collections.Generic.List<HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass> GetAlgorithmClasses(); … … 5013 5016 void UpdateAlgorithmClass(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass algorithmClass); 5014 5017 5015 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAdminService/ UpdateAlgorithmClasses", ReplyAction="http://tempuri.org/IAdminService/UpdateAlgorithmClassesResponse")]5016 void UpdateAlgorithmClasses(System.Collections.Generic.List<HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass> algorithmClasses);5018 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAdminService/DeleteAlgorithmClass", ReplyAction="http://tempuri.org/IAdminService/DeleteAlgorithmClassResponse")] 5019 void DeleteAlgorithmClass(long algorithmClassId); 5017 5020 } 5018 5021 … … 5064 5067 } 5065 5068 5069 public void AddAlgorithmClass(HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass algorithmClass) { 5070 base.Channel.AddAlgorithmClass(algorithmClass); 5071 } 5072 5066 5073 public System.Collections.Generic.List<HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass> GetAlgorithmClasses() { 5067 5074 return base.Channel.GetAlgorithmClasses(); … … 5072 5079 } 5073 5080 5074 public void UpdateAlgorithmClasses(System.Collections.Generic.List<HeuristicLab.Clients.OKB.OKBAdmin.AlgorithmClass> algorithmClasses) {5075 base.Channel. UpdateAlgorithmClasses(algorithmClasses);5081 public void DeleteAlgorithmClass(long algorithmClassId) { 5082 base.Channel.DeleteAlgorithmClass(algorithmClassId); 5076 5083 } 5077 5084 } -
branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/configuration.svcinfo
r4388 r4390 6 6 </bindings> 7 7 <endpoints> 8 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://localhost:8733/OKB-3.3/AdminService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IAdminService" contract="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService"><identity><certificate encodedValue="AwAAAAEAAAAUAAAA D/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=" /></identity></Data>" digest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://localhost:8733/OKB-3.3/AdminService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IAdminService" contract="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService"><identity><certificate encodedValue="AwAAAAEAAAAUAAAAD/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=" /></identity></Data>" contractName="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService" />8 <endpoint normalizedDigest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://localhost:8733/OKB-3.3/AdminService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IAdminService" contract="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService"><identity><certificate encodedValue="AwAAAAEAAAAUAAAA7WQGTXSZ0l8y2nNnlyNbjNfb47QgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyNDExMTYxOVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWKl42prPWlY2brrQdaD1hQ5YMlBx+2KVChVW5A4v+Fwv7RsibhHKiZqpCqcGjz56JyK28FHa2e9q/I0ERUD3wHp0g7MzD/Gyoi1fY+HVRMSmE28ajy/1PCCJuK+Ud0OLewB95kAdZZPAn1roOirWIGfLVgmaoBy/He70CX1WuwQIDAQABo0kwRzBFBgNVHQEEPjA8gBDEuOmitgSucjBZiRzZic+koRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQADgYEAQ0Q9rz9BMq6vgDt1+tDkyVxSaD9TtP04oxkdivNG6VdzLQ4m/QzAhxAvT6FqFmSx4m0KdtfVdviVrxu8vb0JY4dihYiCZ8fxF41MbODtTpKhMepOj+10kF7kzcVagWbSlLMNlsUOzJzlaBoq/cDC47QyF3vt4xuFoTSK3DUgtnk=" /></identity></Data>" digest="<?xml version="1.0" encoding="utf-16"?><Data address="net.tcp://localhost:8733/OKB-3.3/AdminService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IAdminService" contract="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService"><identity><certificate encodedValue="AwAAAAEAAAAUAAAA7WQGTXSZ0l8y2nNnlyNbjNfb47QgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyNDExMTYxOVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWKl42prPWlY2brrQdaD1hQ5YMlBx+2KVChVW5A4v+Fwv7RsibhHKiZqpCqcGjz56JyK28FHa2e9q/I0ERUD3wHp0g7MzD/Gyoi1fY+HVRMSmE28ajy/1PCCJuK+Ud0OLewB95kAdZZPAn1roOirWIGfLVgmaoBy/He70CX1WuwQIDAQABo0kwRzBFBgNVHQEEPjA8gBDEuOmitgSucjBZiRzZic+koRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQADgYEAQ0Q9rz9BMq6vgDt1+tDkyVxSaD9TtP04oxkdivNG6VdzLQ4m/QzAhxAvT6FqFmSx4m0KdtfVdviVrxu8vb0JY4dihYiCZ8fxF41MbODtTpKhMepOj+10kF7kzcVagWbSlLMNlsUOzJzlaBoq/cDC47QyF3vt4xuFoTSK3DUgtnk=" /></identity></Data>" contractName="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService" /> 9 9 </endpoints> 10 10 </configurationSnapshot> -
branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/configuration91.svcinfo
r4388 r4390 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum=" digIaTjAqc6HskPS0J94jCaee/o=">2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="4Q9UIc8RISg0ikRDnE1RUiHj51c="> 3 3 <bindingConfigurations> 4 4 <bindingConfiguration bindingType="netTcpBinding" name="NetTcpBinding_IAdminService"> … … 173 173 </property> 174 174 <property path="/identity/certificate/encodedValue" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> 175 <serializedValue>AwAAAAEAAAAUAAAA D/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=</serializedValue>175 <serializedValue>AwAAAAEAAAAUAAAA7WQGTXSZ0l8y2nNnlyNbjNfb47QgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyNDExMTYxOVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWKl42prPWlY2brrQdaD1hQ5YMlBx+2KVChVW5A4v+Fwv7RsibhHKiZqpCqcGjz56JyK28FHa2e9q/I0ERUD3wHp0g7MzD/Gyoi1fY+HVRMSmE28ajy/1PCCJuK+Ud0OLewB95kAdZZPAn1roOirWIGfLVgmaoBy/He70CX1WuwQIDAQABo0kwRzBFBgNVHQEEPjA8gBDEuOmitgSucjBZiRzZic+koRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQADgYEAQ0Q9rz9BMq6vgDt1+tDkyVxSaD9TtP04oxkdivNG6VdzLQ4m/QzAhxAvT6FqFmSx4m0KdtfVdviVrxu8vb0JY4dihYiCZ8fxF41MbODtTpKhMepOj+10kF7kzcVagWbSlLMNlsUOzJzlaBoq/cDC47QyF3vt4xuFoTSK3DUgtnk=</serializedValue> 176 176 </property> 177 177 <property path="/identity/certificateReference" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.CertificateReferenceElement, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> -
branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/service.wsdl
r4388 r4390 297 297 </wsp:ExactlyOne> 298 298 </wsp:Policy> 299 <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_AddAlgorithmClass_Input_policy"> 300 <wsp:ExactlyOne> 301 <wsp:All> 302 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> 303 <sp:Body /> 304 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> 305 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> 306 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> 307 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> 308 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> 309 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> 310 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> 311 </sp:SignedParts> 312 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> 313 <sp:Body /> 314 </sp:EncryptedParts> 315 </wsp:All> 316 </wsp:ExactlyOne> 317 </wsp:Policy> 318 <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_AddAlgorithmClass_output_policy"> 319 <wsp:ExactlyOne> 320 <wsp:All> 321 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> 322 <sp:Body /> 323 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> 324 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> 325 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> 326 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> 327 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> 328 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> 329 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> 330 </sp:SignedParts> 331 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> 332 <sp:Body /> 333 </sp:EncryptedParts> 334 </wsp:All> 335 </wsp:ExactlyOne> 336 </wsp:Policy> 299 337 <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_GetAlgorithmClasses_Input_policy"> 300 338 <wsp:ExactlyOne> … … 373 411 </wsp:ExactlyOne> 374 412 </wsp:Policy> 375 <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_ UpdateAlgorithmClasses_Input_policy">376 <wsp:ExactlyOne> 377 <wsp:All> 378 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> 379 <sp:Body /> 380 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> 381 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> 382 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> 383 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> 384 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> 385 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> 386 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> 387 </sp:SignedParts> 388 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> 389 <sp:Body /> 390 </sp:EncryptedParts> 391 </wsp:All> 392 </wsp:ExactlyOne> 393 </wsp:Policy> 394 <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_ UpdateAlgorithmClasses_output_policy">413 <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_DeleteAlgorithmClass_Input_policy"> 414 <wsp:ExactlyOne> 415 <wsp:All> 416 <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> 417 <sp:Body /> 418 <sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /> 419 <sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /> 420 <sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /> 421 <sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /> 422 <sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /> 423 <sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /> 424 <sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /> 425 </sp:SignedParts> 426 <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> 427 <sp:Body /> 428 </sp:EncryptedParts> 429 </wsp:All> 430 </wsp:ExactlyOne> 431 </wsp:Policy> 432 <wsp:Policy wsu:Id="NetTcpBinding_IAdminService_DeleteAlgorithmClass_output_policy"> 395 433 <wsp:ExactlyOne> 396 434 <wsp:All> … … 449 487 <wsdl:part name="parameters" element="tns:UpdateCompleteProblemResponse" /> 450 488 </wsdl:message> 489 <wsdl:message name="IAdminService_AddAlgorithmClass_InputMessage"> 490 <wsdl:part name="parameters" element="tns:AddAlgorithmClass" /> 491 </wsdl:message> 492 <wsdl:message name="IAdminService_AddAlgorithmClass_OutputMessage"> 493 <wsdl:part name="parameters" element="tns:AddAlgorithmClassResponse" /> 494 </wsdl:message> 451 495 <wsdl:message name="IAdminService_GetAlgorithmClasses_InputMessage"> 452 496 <wsdl:part name="parameters" element="tns:GetAlgorithmClasses" /> … … 461 505 <wsdl:part name="parameters" element="tns:UpdateAlgorithmClassResponse" /> 462 506 </wsdl:message> 463 <wsdl:message name="IAdminService_ UpdateAlgorithmClasses_InputMessage">464 <wsdl:part name="parameters" element="tns: UpdateAlgorithmClasses" />465 </wsdl:message> 466 <wsdl:message name="IAdminService_ UpdateAlgorithmClasses_OutputMessage">467 <wsdl:part name="parameters" element="tns: UpdateAlgorithmClassesResponse" />507 <wsdl:message name="IAdminService_DeleteAlgorithmClass_InputMessage"> 508 <wsdl:part name="parameters" element="tns:DeleteAlgorithmClass" /> 509 </wsdl:message> 510 <wsdl:message name="IAdminService_DeleteAlgorithmClass_OutputMessage"> 511 <wsdl:part name="parameters" element="tns:DeleteAlgorithmClassResponse" /> 468 512 </wsdl:message> 469 513 <wsdl:portType name="IAdminService"> … … 488 532 <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/UpdateCompleteProblemResponse" message="tns:IAdminService_UpdateCompleteProblem_OutputMessage" /> 489 533 </wsdl:operation> 534 <wsdl:operation name="AddAlgorithmClass"> 535 <wsdl:input wsaw:Action="http://tempuri.org/IAdminService/AddAlgorithmClass" message="tns:IAdminService_AddAlgorithmClass_InputMessage" /> 536 <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/AddAlgorithmClassResponse" message="tns:IAdminService_AddAlgorithmClass_OutputMessage" /> 537 </wsdl:operation> 490 538 <wsdl:operation name="GetAlgorithmClasses"> 491 539 <wsdl:input wsaw:Action="http://tempuri.org/IAdminService/GetAlgorithmClasses" message="tns:IAdminService_GetAlgorithmClasses_InputMessage" /> … … 496 544 <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/UpdateAlgorithmClassResponse" message="tns:IAdminService_UpdateAlgorithmClass_OutputMessage" /> 497 545 </wsdl:operation> 498 <wsdl:operation name=" UpdateAlgorithmClasses">499 <wsdl:input wsaw:Action="http://tempuri.org/IAdminService/ UpdateAlgorithmClasses" message="tns:IAdminService_UpdateAlgorithmClasses_InputMessage" />500 <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/ UpdateAlgorithmClassesResponse" message="tns:IAdminService_UpdateAlgorithmClasses_OutputMessage" />546 <wsdl:operation name="DeleteAlgorithmClass"> 547 <wsdl:input wsaw:Action="http://tempuri.org/IAdminService/DeleteAlgorithmClass" message="tns:IAdminService_DeleteAlgorithmClass_InputMessage" /> 548 <wsdl:output wsaw:Action="http://tempuri.org/IAdminService/DeleteAlgorithmClassResponse" message="tns:IAdminService_DeleteAlgorithmClass_OutputMessage" /> 501 549 </wsdl:operation> 502 550 </wsdl:portType> … … 559 607 </wsdl:output> 560 608 </wsdl:operation> 609 <wsdl:operation name="AddAlgorithmClass"> 610 <soap12:operation soapAction="http://tempuri.org/IAdminService/AddAlgorithmClass" style="document" /> 611 <wsdl:input> 612 <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_AddAlgorithmClass_Input_policy" /> 613 <soap12:body use="literal" /> 614 </wsdl:input> 615 <wsdl:output> 616 <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_AddAlgorithmClass_output_policy" /> 617 <soap12:body use="literal" /> 618 </wsdl:output> 619 </wsdl:operation> 561 620 <wsdl:operation name="GetAlgorithmClasses"> 562 621 <soap12:operation soapAction="http://tempuri.org/IAdminService/GetAlgorithmClasses" style="document" /> … … 581 640 </wsdl:output> 582 641 </wsdl:operation> 583 <wsdl:operation name=" UpdateAlgorithmClasses">584 <soap12:operation soapAction="http://tempuri.org/IAdminService/ UpdateAlgorithmClasses" style="document" />585 <wsdl:input> 586 <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_ UpdateAlgorithmClasses_Input_policy" />587 <soap12:body use="literal" /> 588 </wsdl:input> 589 <wsdl:output> 590 <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_ UpdateAlgorithmClasses_output_policy" />642 <wsdl:operation name="DeleteAlgorithmClass"> 643 <soap12:operation soapAction="http://tempuri.org/IAdminService/DeleteAlgorithmClass" style="document" /> 644 <wsdl:input> 645 <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_DeleteAlgorithmClass_Input_policy" /> 646 <soap12:body use="literal" /> 647 </wsdl:input> 648 <wsdl:output> 649 <wsp:PolicyReference URI="#NetTcpBinding_IAdminService_DeleteAlgorithmClass_output_policy" /> 591 650 <soap12:body use="literal" /> 592 651 </wsdl:output> … … 601 660 <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"> 602 661 <X509Data> 603 <X509Certificate>MIIB7jCCAVugAwIBAgIQ HRM04rGn9rBGca6mGX2LQjAJBgUrDgMCHQUAMBQxEjAQBgNVBAMTCWxvY2FsaG9zdDAeFw0xMDA4MjAyMjMyMDhaFw0zOTEyMzEyMzU5NTlaMBQxEjAQBgNVBAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAz5Hwki0V/P+BfmeMrON8meDDM4weOHDGpD8+Da4vphAeZ9s/9BhWrQmM5CNn/554lqlawWIx5I7GcthGYqB7uMGvfXNVxBiZxTQ7jZ+hEpHxMochePjqihp6SvRza8OzljLqp9qDodIhXfX5ehUwJvmNKdyz/t/AbmM6Qp4qqncCAwEAAaNJMEcwRQYDVR0BBD4wPIAQ74vEYIqPb/pq+fE4gL6heaEWMBQxEjAQBgNVBAMTCWxvY2FsaG9zdIIQHRM04rGn9rBGca6mGX2LQjAJBgUrDgMCHQUAA4GBADXRpbxynlKbXzbvSNMIAOao5lQfiQ5XTgJK3zNEfuCHFUNOsuSuz9O7sUAFe/q4Zwy4C8hSbp1B4M2347Ixcu748LaInlwOY9AGJZuAB0e3R7eB1YJCDGLfFzgqjMOY4xV/dcSfPbQu5jPc2EePDfU+UEnjBqPn/ic8m3i1sZzb</X509Certificate>662 <X509Certificate>MIIB7jCCAVugAwIBAgIQSA/NgVsCBrNLaqTPr3nVJDAJBgUrDgMCHQUAMBQxEjAQBgNVBAMTCWxvY2FsaG9zdDAeFw0xMDA4MjQxMTE2MTlaFw0zOTEyMzEyMzU5NTlaMBQxEjAQBgNVBAMTCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1ipeNqaz1pWNm660HWg9YUOWDJQcftilQoVVuQOL/hcL+0bIm4RyomaqQqnBo8+eicitvBR2tnvavyNBEVA98B6dIOzMw/xsqItX2Ph1UTEphNvGo8v9TwgibivlHdDi3sAfeZAHWWTwJ9a6Doq1iBny1YJmqAcvx3u9Al9VrsECAwEAAaNJMEcwRQYDVR0BBD4wPIAQxLjporYErnIwWYkc2YnPpKEWMBQxEjAQBgNVBAMTCWxvY2FsaG9zdIIQSA/NgVsCBrNLaqTPr3nVJDAJBgUrDgMCHQUAA4GBAENEPa8/QTKur4A7dfrQ5MlcUmg/U7T9OKMZHYrzRulXcy0OJv0MwIcQL0+hahZkseJtCnbX1Xb4la8bvL29CWOHYoWIgmfH8ReNTGzg7U6SoTHqTo/tdJBe5M3FWoFm0pSzDZbFDsyc5WgaKv3AwuO0Mhd77eMbhaE0itw1ILZ5</X509Certificate> 604 663 </X509Data> 605 664 </KeyInfo> -
branches/OKB/HeuristicLab.Clients.OKB-3.3/Service References/OKBAdmin/service.xsd
r4388 r4390 66 66 </xs:complexType> 67 67 </xs:element> 68 <xs:element name="AddAlgorithmClass"> 69 <xs:complexType> 70 <xs:sequence> 71 <xs:element xmlns:q6="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="algorithmClass" nillable="true" type="q6:AlgorithmClass" /> 72 </xs:sequence> 73 </xs:complexType> 74 </xs:element> 75 <xs:element name="AddAlgorithmClassResponse"> 76 <xs:complexType> 77 <xs:sequence /> 78 </xs:complexType> 79 </xs:element> 68 80 <xs:element name="GetAlgorithmClasses"> 69 81 <xs:complexType> … … 74 86 <xs:complexType> 75 87 <xs:sequence> 76 <xs:element xmlns:q 6="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="GetAlgorithmClassesResult" nillable="true" type="q6:ArrayOfAlgorithmClass" />88 <xs:element xmlns:q7="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="GetAlgorithmClassesResult" nillable="true" type="q7:ArrayOfAlgorithmClass" /> 77 89 </xs:sequence> 78 90 </xs:complexType> … … 81 93 <xs:complexType> 82 94 <xs:sequence> 83 <xs:element xmlns:q 7="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="algorithmClass" nillable="true" type="q7:AlgorithmClass" />95 <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="algorithmClass" nillable="true" type="q8:AlgorithmClass" /> 84 96 </xs:sequence> 85 97 </xs:complexType> … … 90 102 </xs:complexType> 91 103 </xs:element> 92 <xs:element name=" UpdateAlgorithmClasses">104 <xs:element name="DeleteAlgorithmClass"> 93 105 <xs:complexType> 94 106 <xs:sequence> 95 <xs:element xmlns:q8="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.OKB.DataAccess" minOccurs="0" name="algorithmClasses" nillable="true" type="q8:ArrayOfAlgorithmClass" />107 <xs:element minOccurs="0" name="algorithmClassId" type="xs:long" /> 96 108 </xs:sequence> 97 109 </xs:complexType> 98 110 </xs:element> 99 <xs:element name=" UpdateAlgorithmClassesResponse">111 <xs:element name="DeleteAlgorithmClassResponse"> 100 112 <xs:complexType> 101 113 <xs:sequence /> -
branches/OKB/HeuristicLab.Clients.OKB-3.3/app.config
r4388 r4390 26 26 contract="OKBAdmin.IAdminService" name="NetTcpBinding_IAdminService"> 27 27 <identity> 28 <certificate encodedValue="AwAAAAEAAAAUAAAA D/AlkYJw/OUhl6D/9w8mjJBh39kgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyMDIyMzIwOFoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPkfCSLRX8/4F+Z4ys43yZ4MMzjB44cMakPz4Nri+mEB5n2z/0GFatCYzkI2f/nniWqVrBYjHkjsZy2EZioHu4wa99c1XEGJnFNDuNn6ESkfEyhyF4+OqKGnpK9HNrw7OWMuqn2oOh0iFd9fl6FTAm+Y0p3LP+38BuYzpCniqqdwIDAQABo0kwRzBFBgNVHQEEPjA8gBDvi8Rgio9v+mr58TiAvqF5oRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghAdEzTisaf2sEZxrqYZfYtCMAkGBSsOAwIdBQADgYEANdGlvHKeUptfNu9I0wgA5qjmVB+JDldOAkrfM0R+4IcVQ06y5K7P07uxQAV7+rhnDLgLyFJunUHgzbfjsjFy7vjwtoieXA5j0AYlm4AHR7dHt4HVgkIMYt8XOCqMw5jjFX91xJ89tC7mM9zYR48N9T5QSeMGo+f+JzybeLWxnNs=" />28 <certificate encodedValue="AwAAAAEAAAAUAAAA7WQGTXSZ0l8y2nNnlyNbjNfb47QgAAAAAQAAAPIBAAAwggHuMIIBW6ADAgECAhBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQAwFDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTEwMDgyNDExMTYxOVoXDTM5MTIzMTIzNTk1OVowFDESMBAGA1UEAxMJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWKl42prPWlY2brrQdaD1hQ5YMlBx+2KVChVW5A4v+Fwv7RsibhHKiZqpCqcGjz56JyK28FHa2e9q/I0ERUD3wHp0g7MzD/Gyoi1fY+HVRMSmE28ajy/1PCCJuK+Ud0OLewB95kAdZZPAn1roOirWIGfLVgmaoBy/He70CX1WuwQIDAQABo0kwRzBFBgNVHQEEPjA8gBDEuOmitgSucjBZiRzZic+koRYwFDESMBAGA1UEAxMJbG9jYWxob3N0ghBID82BWwIGs0tqpM+vedUkMAkGBSsOAwIdBQADgYEAQ0Q9rz9BMq6vgDt1+tDkyVxSaD9TtP04oxkdivNG6VdzLQ4m/QzAhxAvT6FqFmSx4m0KdtfVdviVrxu8vb0JY4dihYiCZ8fxF41MbODtTpKhMepOj+10kF7kzcVagWbSlLMNlsUOzJzlaBoq/cDC47QyF3vt4xuFoTSK3DUgtnk=" /> 29 29 </identity> 30 30 </endpoint> -
trunk/sources/HeuristicLab.Services.OKB/3.3/AdminService.cs
r4388 r4390 209 209 210 210 211 public void AddAlgorithmClass(AlgorithmClass algorithmClass) { 212 using (OKBDataContext okb = new OKBDataContext()) { 213 okb.AlgorithmClasses.InsertOnSubmit(new AlgorithmClass() { Name = algorithmClass.Name, Description = algorithmClass.Description }); 214 okb.SubmitChanges(); 215 } 216 } 217 211 218 public AlgorithmClass[] GetAlgorithmClasses() { 212 219 using (OKBDataContext okb = new OKBDataContext()) { … … 217 224 public void UpdateAlgorithmClass(AlgorithmClass algorithmClass) { 218 225 using (OKBDataContext okb = new OKBDataContext()) { 219 okb.AlgorithmClasses.Attach(algorithmClass); 220 okb.SubmitChanges(); 221 } 222 } 223 224 public void UpdateAlgorithmClasses(AlgorithmClass[] algorithmClasses) { 225 using (OKBDataContext okb = new OKBDataContext()) { 226 foreach (AlgorithmClass a in algorithmClasses) { 227 AlgorithmClass original = okb.AlgorithmClasses.FirstOrDefault(x => x.Id == a.Id); 228 if (original != null) { 229 original.Name = a.Name; 230 original.Description = a.Description; 231 } else { 232 okb.AlgorithmClasses.InsertOnSubmit(a); 233 } 234 } 226 AlgorithmClass original = okb.AlgorithmClasses.First(a => a.Id == algorithmClass.Id); 227 original.Name = algorithmClass.Name; 228 original.Description = algorithmClass.Description; 229 okb.SubmitChanges(); 230 } 231 } 232 233 public void DeleteAlgorithmClass(long algorithmClassId) { 234 using (OKBDataContext okb = new OKBDataContext()) { 235 okb.AlgorithmClasses.DeleteOnSubmit(okb.AlgorithmClasses.First(a => a.Id == algorithmClassId)); 235 236 okb.SubmitChanges(); 236 237 } -
trunk/sources/HeuristicLab.Services.OKB/3.3/Interfaces/IAdminService.cs
r4388 r4390 112 112 113 113 [OperationContract] 114 void AddAlgorithmClass(AlgorithmClass algorithmClass); 115 116 [OperationContract] 114 117 AlgorithmClass[] GetAlgorithmClasses(); 115 118 … … 118 121 119 122 [OperationContract] 120 void UpdateAlgorithmClasses(AlgorithmClass[] algorithmClasses); 121 123 void DeleteAlgorithmClass(long algorithmClassId); 122 124 123 125 }
Note: See TracChangeset
for help on using the changeset viewer.