Changeset 3179
- Timestamp:
- 03/22/10 16:53:27 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginAdministrator/3.3/MainForm.cs
r3081 r3179 29 29 internal class MainForm : DockingMainForm { 30 30 private System.Windows.Forms.ToolStripProgressBar progressBar; 31 31 private System.Windows.Forms.ToolStripLabel statusLabel; 32 32 public MainForm(Type type) 33 33 : base(type) { … … 41 41 42 42 private void InitializeComponent() { 43 this.progressBar = new System.Windows.Forms.ToolStripProgressBar(); 44 this.statusLabel = new System.Windows.Forms.ToolStripLabel(); 43 45 this.SuspendLayout(); 46 // 47 // progressBar 48 // 49 this.progressBar.MarqueeAnimationSpeed = 30; 50 this.progressBar.Name = "progressBar"; 51 this.progressBar.Size = new System.Drawing.Size(100, 16); 52 this.progressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee; 53 this.progressBar.Visible = false; 44 54 45 progressBar = new System.Windows.Forms.ToolStripProgressBar(); 46 progressBar.MarqueeAnimationSpeed = 30; 47 progressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee; 48 progressBar.Visible = false; 49 statusStrip.Items.Add(progressBar); 55 this.statusLabel.Name = "statusLabel"; 56 this.statusLabel.Visible = true; 50 57 // 51 58 // MainForm … … 56 63 this.ResumeLayout(false); 57 64 this.PerformLayout(); 65 58 66 } 59 67 … … 65 73 progressBar.Visible = false; 66 74 } 75 76 public void SetStatusBarText(string msg) { 77 statusLabel.Text = msg; 78 } 67 79 } 68 80 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/PluginEditor.cs
r3081 r3179 133 133 134 134 foreach (var plugin in IteratePlugins(selectedPlugins)) { 135 SetMainFormStatusBar("Uploading", plugin); 135 136 adminClient.DeployPlugin(MakePluginDescription(plugin), CreateZipPackage(plugin)); 136 137 } … … 144 145 } 145 146 } 147 146 148 #endregion 147 149 … … 187 189 var plugin = (IPluginDescription)item.Tag; 188 190 // also check all dependencies 189 modifiedPlugins.Add(plugin); 191 if (!modifiedPlugins.Contains(plugin)) 192 modifiedPlugins.Add(plugin); 190 193 foreach (var dep in GetAllDependencies(plugin)) { 191 modifiedPlugins.Add(dep); 194 if (!modifiedPlugins.Contains(dep)) 195 modifiedPlugins.Add(dep); 192 196 } 193 197 } … … 197 201 var plugin = (IPluginDescription)item.Tag; 198 202 // also uncheck all dependent plugins 199 modifiedPlugins.Add(plugin); 203 if (!modifiedPlugins.Contains(plugin)) 204 modifiedPlugins.Add(plugin); 200 205 foreach (var dep in GetAllDependents(plugin)) { 201 modifiedPlugins.Add(dep); 206 if (!modifiedPlugins.Contains(dep)) 207 modifiedPlugins.Add(dep); 202 208 } 203 209 } … … 231 237 232 238 private IEnumerable<IPluginDescription> IteratePlugins(IEnumerable<IPluginDescription> plugins) { 239 HashSet<IPluginDescription> yieldedItems = new HashSet<IPluginDescription>(); 233 240 foreach (var plugin in plugins) { 234 241 foreach (var dependency in IteratePlugins(plugin.Dependencies)) { 235 yield return dependency; 236 } 237 yield return plugin; 242 if (!yieldedItems.Contains(dependency)) { 243 yieldedItems.Add(dependency); 244 yield return dependency; 245 } 246 } 247 if (!yieldedItems.Contains(plugin)) { 248 yieldedItems.Add(plugin); 249 yield return plugin; 250 } 238 251 } 239 252 } … … 309 322 MainFormManager.GetMainForm<MainForm>().HideProgressBar(); 310 323 } 324 private void SetMainFormStatusBar(string p, IPluginDescription plugin) { 325 if (InvokeRequired) Invoke((Action<string, IPluginDescription>)SetMainFormStatusBar, p, plugin); 326 else { 327 MainFormManager.GetMainForm<MainForm>().SetStatusBarText(p + " " + plugin.ToString()); 328 } 329 } 330 311 331 #endregion 312 332 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/PluginListView.cs
r3081 r3179 47 47 } 48 48 49 private List<IPluginDescription> checkedPlugins = new List<IPluginDescription>();49 private Dictionary<IPluginDescription, bool> checkedPlugins = new Dictionary<IPluginDescription, bool>(); 50 50 public IEnumerable<IPluginDescription> CheckedPlugins { 51 51 get { 52 return checkedPlugins; 52 return from pair in checkedPlugins 53 where pair.Value 54 select pair.Key; 53 55 } 54 56 } … … 77 79 private ListViewItem CreateListViewItem(IPluginDescription plugin) { 78 80 var item = new ListViewItem(new string[] { plugin.Name, plugin.Version.ToString() }); 79 item.Checked = (from p in checkedPlugins where p.Name == plugin.Name where p.Version == plugin.Version select p).Any();81 item.Checked = checkedPlugins.ContainsKey(plugin) ? checkedPlugins[plugin] : false; 80 82 item.Tag = plugin; 81 83 return item; … … 89 91 // also check all dependencies 90 92 MarkPluginChecked(plugin); 91 modifiedPlugins.Add(plugin); 93 if (!modifiedPlugins.Contains(plugin)) 94 modifiedPlugins.Add(plugin); 92 95 foreach (var dep in GetAllDependencies(plugin)) { 93 96 MarkPluginChecked(dep); 94 modifiedPlugins.Add(dep); 97 if (!modifiedPlugins.Contains(dep)) 98 modifiedPlugins.Add(dep); 95 99 } 96 100 } … … 102 106 // also uncheck all dependent plugins 103 107 MarkPluginUnchecked(plugin); 104 modifiedPlugins.Add(plugin); 108 if (!modifiedPlugins.Contains(plugin)) 109 modifiedPlugins.Add(plugin); 105 110 foreach (var dep in GetAllDependents(plugin)) { 106 111 MarkPluginUnchecked(dep); 107 modifiedPlugins.Add(dep); 112 if (!modifiedPlugins.Contains(dep)) 113 modifiedPlugins.Add(dep); 108 114 } 109 115 … … 115 121 116 122 private void MarkPluginChecked(IPluginDescription plugin) { 117 var matching = from p in checkedPlugins 118 where p.Name == plugin.Name 119 where p.Version == plugin.Version 120 select p; 121 if (!matching.Any()) checkedPlugins.Add(plugin); 123 checkedPlugins[plugin] = true; 122 124 } 123 125 124 126 private void MarkPluginUnchecked(IPluginDescription plugin) { 125 checkedPlugins = (from p in checkedPlugins 126 where p.Name != plugin.Name || 127 p.Version != plugin.Version 128 select p).ToList(); 127 checkedPlugins[plugin] = false; 129 128 } 130 129 … … 148 147 149 148 private IEnumerable<IPluginDescription> GetAllDependencies(IPluginDescription plugin) { 149 HashSet<IPluginDescription> yieldedPlugins = new HashSet<IPluginDescription>(); 150 150 foreach (var dep in plugin.Dependencies) { 151 151 foreach (var recDep in GetAllDependencies(dep)) { 152 yield return recDep; 152 if (!yieldedPlugins.Contains(recDep)) { 153 yieldedPlugins.Add(recDep); 154 yield return recDep; 155 } 153 156 } 154 yield return dep; 157 if (!yieldedPlugins.Contains(dep)) { 158 yieldedPlugins.Add(dep); 159 yield return dep; 160 } 155 161 } 156 162 } -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/ProductEditor.Designer.cs
r3081 r3179 54 54 this.productVersionHeader = new System.Windows.Forms.ColumnHeader(); 55 55 this.productImageList = new System.Windows.Forms.ImageList(this.components); 56 this.plugin ImageList = new System.Windows.Forms.ImageList(this.components);56 this.pluginListView = new HeuristicLab.PluginAdministrator.PluginListView(); 57 57 this.pluginsLabel = new System.Windows.Forms.Label(); 58 58 this.versionTextBox = new System.Windows.Forms.TextBox(); … … 60 60 this.nameTextBox = new System.Windows.Forms.TextBox(); 61 61 this.nameLabel = new System.Windows.Forms.Label(); 62 this.pluginImageList = new System.Windows.Forms.ImageList(this.components); 62 63 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 63 this.pluginListView = new PluginListView();64 64 this.splitContainer.Panel1.SuspendLayout(); 65 65 this.splitContainer.Panel2.SuspendLayout(); … … 81 81 // 82 82 this.saveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 83 this.saveButton.Enabled = false; 83 84 this.saveButton.Location = new System.Drawing.Point(3, 365); 84 85 this.saveButton.Name = "saveButton"; … … 91 92 // newProductButton 92 93 // 94 this.newProductButton.Enabled = false; 93 95 this.newProductButton.Location = new System.Drawing.Point(84, 3); 94 96 this.newProductButton.Name = "newProductButton"; … … 132 134 this.productNameHeader, 133 135 this.productVersionHeader}); 136 this.productsListView.Enabled = false; 134 137 this.productsListView.FullRowSelect = true; 135 138 this.productsListView.Location = new System.Drawing.Point(3, 3); … … 159 162 this.productImageList.TransparentColor = System.Drawing.Color.Transparent; 160 163 // 161 // pluginImageList 162 // 163 this.pluginImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; 164 this.pluginImageList.ImageSize = new System.Drawing.Size(16, 16); 165 this.pluginImageList.TransparentColor = System.Drawing.Color.Transparent; 164 // pluginListView 165 // 166 this.pluginListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 167 | System.Windows.Forms.AnchorStyles.Left) 168 | System.Windows.Forms.AnchorStyles.Right))); 169 this.pluginListView.Enabled = false; 170 this.pluginListView.Location = new System.Drawing.Point(3, 85); 171 this.pluginListView.Name = "pluginListView"; 172 this.pluginListView.Plugins = null; 173 this.pluginListView.Size = new System.Drawing.Size(330, 303); 174 this.pluginListView.TabIndex = 7; 175 this.pluginListView.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.pluginListView_ItemChecked); 166 176 // 167 177 // pluginsLabel … … 178 188 this.versionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 179 189 | System.Windows.Forms.AnchorStyles.Right))); 190 this.versionTextBox.Enabled = false; 180 191 this.versionTextBox.Location = new System.Drawing.Point(68, 29); 181 192 this.versionTextBox.Name = "versionTextBox"; … … 187 198 // 188 199 this.versionLabel.AutoSize = true; 200 this.versionLabel.Enabled = false; 189 201 this.versionLabel.Location = new System.Drawing.Point(10, 32); 190 202 this.versionLabel.Name = "versionLabel"; … … 197 209 this.nameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 198 210 | System.Windows.Forms.AnchorStyles.Right))); 211 this.nameTextBox.Enabled = false; 199 212 this.nameTextBox.Location = new System.Drawing.Point(68, 3); 200 213 this.nameTextBox.Name = "nameTextBox"; … … 206 219 // 207 220 this.nameLabel.AutoSize = true; 221 this.nameLabel.Enabled = false; 208 222 this.nameLabel.Location = new System.Drawing.Point(17, 6); 209 223 this.nameLabel.Name = "nameLabel"; … … 212 226 this.nameLabel.Text = "Name:"; 213 227 // 228 // pluginImageList 229 // 230 this.pluginImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; 231 this.pluginImageList.ImageSize = new System.Drawing.Size(16, 16); 232 this.pluginImageList.TransparentColor = System.Drawing.Color.Transparent; 233 // 214 234 // errorProvider 215 235 // 216 236 this.errorProvider.ContainerControl = this; 217 //218 // pluginListView219 //220 this.pluginListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)221 | System.Windows.Forms.AnchorStyles.Left)222 | System.Windows.Forms.AnchorStyles.Right)));223 this.pluginListView.Location = new System.Drawing.Point(3, 85);224 this.pluginListView.Name = "pluginListView";225 this.pluginListView.Plugins = null;226 this.pluginListView.Size = new System.Drawing.Size(330, 303);227 this.pluginListView.TabIndex = 7;228 this.pluginListView.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.pluginListView_ItemChecked);229 237 // 230 238 // ProductEditor -
trunk/sources/HeuristicLab.PluginAdministrator/3.3/ProductEditor.cs
r3081 r3179 91 91 92 92 private void refreshProductsWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { 93 this.products = new List<PluginDeploymentService.ProductDescription>( 94 (PluginDeploymentService.ProductDescription[])((object[])e.Result)[0]); 95 this.plugins = new List<PluginDeploymentService.PluginDescription>( 96 (PluginDeploymentService.PluginDescription[])((object[])e.Result)[1]); 97 98 UpdateProductsList(); 99 dirtyProducts.Clear(); 100 101 Cursor = Cursors.Default; 102 SetControlsEnabled(true); 93 if (!e.Cancelled && e.Result != null) { 94 this.products = new List<PluginDeploymentService.ProductDescription>( 95 (PluginDeploymentService.ProductDescription[])((object[])e.Result)[0]); 96 this.plugins = new List<PluginDeploymentService.PluginDescription>( 97 (PluginDeploymentService.PluginDescription[])((object[])e.Result)[1]); 98 99 UpdateProductsList(); 100 dirtyProducts.Clear(); 101 102 Cursor = Cursors.Default; 103 SetControlsEnabled(true); 104 } 103 105 } 104 106 #endregion … … 136 138 newProductButton.Enabled = enabled; 137 139 splitContainer.Enabled = enabled; 140 productsListView.Enabled = enabled; 141 nameLabel.Enabled = enabled; 142 nameTextBox.Enabled = enabled; 143 versionLabel.Enabled = enabled; 144 versionTextBox.Enabled = enabled; 145 pluginListView.Enabled = enabled; 138 146 } 139 147 -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/DeploymentService/DeploymentService.cs
r3092 r3179 1 #pragma warning disable 1591 2 //------------------------------------------------------------------------------ 1 //------------------------------------------------------------------------------ 3 2 // <auto-generated> 4 3 // This code was generated by a tool. … … 314 313 } 315 314 } 316 #pragma warning restore 1591 -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/DeploymentService/PluginDescription.cs
r3092 r3179 104 104 return Name + " " + Version; 105 105 } 106 107 public override bool Equals(object obj) { 108 PluginDescription other = obj as PluginDescription; 109 if (other == null) return false; 110 else return other.Name == this.Name && other.Version == this.Version; 111 } 112 113 public override int GetHashCode() { 114 return Name.GetHashCode() + Version.GetHashCode(); 115 } 106 116 } 107 117 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/DeploymentService/RegenerateServiceClasses.cmd
r3006 r3179 1 1 # 2 svcutil http://servdev.heuristiclab.com/Deployment /Update.svc/mex http://servdev.heuristiclab.com/Deployment/Admin.svc/mex /language:C# /targetClientVersion:Version35 /out:DeploymentService /namespace:*,HeuristicLab.PluginInfrastructure.Advanced.DeploymentService /mergeConfig /config:../../app.config2 svcutil http://servdev.heuristiclab.com/Deployment-3.3/Update.svc/mex http://servdev.heuristiclab.com/Deployment-3.3/Admin.svc/mex /language:C# /targetClientVersion:Version35 /out:DeploymentService /namespace:*,HeuristicLab.PluginInfrastructure.Advanced.DeploymentService /mergeConfig /config:../../app.config -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerForm.cs
r3090 r3179 336 336 Cursor = Cursors.AppStarting; 337 337 toolStripProgressBar.Visible = true; 338 DisableControls();338 refreshButton.Enabled = false; 339 339 refreshServerPluginsBackgroundWorker.RunWorkerAsync(); 340 340 } … … 378 378 (new ConnectionSetupView()).ShowInForm(); 379 379 } 380 381 protected override void OnClosing(CancelEventArgs e) { 382 installationManager.PluginInstalled -= new EventHandler<PluginInfrastructureEventArgs>(installationManager_PluginInstalled); 383 installationManager.PluginRemoved -= new EventHandler<PluginInfrastructureEventArgs>(installationManager_PluginRemoved); 384 installationManager.PluginUpdated -= new EventHandler<PluginInfrastructureEventArgs>(installationManager_PluginUpdated); 385 installationManager.PreInstallPlugin -= new EventHandler<PluginInfrastructureCancelEventArgs>(installationManager_PreInstallPlugin); 386 installationManager.PreRemovePlugin -= new EventHandler<PluginInfrastructureCancelEventArgs>(installationManager_PreRemovePlugin); 387 installationManager.PreUpdatePlugin -= new EventHandler<PluginInfrastructureCancelEventArgs>(installationManager_PreUpdatePlugin); 388 base.OnClosing(e); 389 } 380 390 } 381 391 } -
trunk/sources/HeuristicLab.PluginInfrastructure/Manager/PluginInfrastructureEventArgs.cs
r3046 r3179 25 25 26 26 namespace HeuristicLab.PluginInfrastructure.Manager { 27 // to be replaced by GenericEventArgs28 27 [Serializable] 29 28 internal sealed class PluginInfrastructureEventArgs : EventArgs { -
trunk/sources/HeuristicLab.PluginInfrastructure/app.config
r3112 r3179 20 20 </applicationSettings> 21 21 <system.serviceModel> 22 <behaviors> 23 <endpointBehaviors> 24 <behavior name="SerializationBehavior"> 25 <dataContractSerializer maxItemsInObjectGraph="1000000" /> 26 </behavior> 27 </endpointBehaviors> 28 </behaviors> 22 29 <bindings> 23 30 <wsHttpBinding> 24 <binding name="WSHttpBinding_IUpdate " closeTimeout="00:01:00"31 <binding name="WSHttpBinding_IUpdate1" closeTimeout="00:01:00" 25 32 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 26 33 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" 27 maxBufferPoolSize="524288" maxReceivedMessageSize=" 10000000"34 maxBufferPoolSize="524288" maxReceivedMessageSize="200000000" 28 35 messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" 29 36 allowCookies="false"> 30 <readerQuotas maxDepth="32" maxStringContentLength=" 8192" maxArrayLength="10000000"37 <readerQuotas maxDepth="32" maxStringContentLength="32000" maxArrayLength="200000000" 31 38 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 32 39 <reliableSession ordered="true" inactivityTimeout="00:10:00" … … 39 46 </security> 40 47 </binding> 41 <binding name="WSHttpBinding_IAdmin " closeTimeout="00:01:00"48 <binding name="WSHttpBinding_IAdmin1" closeTimeout="00:01:00" 42 49 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 43 50 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" 44 maxBufferPoolSize="524288" maxReceivedMessageSize=" 10000000"51 maxBufferPoolSize="524288" maxReceivedMessageSize="200000000" 45 52 messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" 46 53 allowCookies="false"> 47 <readerQuotas maxDepth="32" maxStringContentLength=" 8192" maxArrayLength="10000000"54 <readerQuotas maxDepth="32" maxStringContentLength="32000" maxArrayLength="200000000" 48 55 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 49 56 <reliableSession ordered="true" inactivityTimeout="00:10:00" … … 60 67 <client> 61 68 <endpoint address="http://servdev.heuristiclab.com/Deployment-3.3/Update.svc" 62 b inding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IUpdate"63 contract="HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.IUpdate"64 name="WSHttpBinding_IUpdate ">69 behaviorConfiguration="SerializationBehavior" binding="wsHttpBinding" 70 bindingConfiguration="WSHttpBinding_IUpdate1" contract="HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.IUpdate" 71 name="WSHttpBinding_IUpdate1"> 65 72 <identity> 66 73 <certificate encodedValue="AwAAAAEAAAAUAAAAFhNc5P5CrrUsDAETV1gq2wDRXQ0gAAAAAQAAACcCAAAwggIjMIIBjKADAgECAhCnTkk2TwtajEKLiJLyjCpwMA0GCSqGSIb3DQEBBAUAMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbTAeFw0xMDAzMTAxNTI4MTJaFw0zOTEyMzEyMzU5NTlaMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEArJSMi2lAXj/Z9sMiLjiUmqUfNSfozaio/mjR6PxbDPBWZp6xTFdDLnBx+kHMBp+gc75hMI6wCFHB8PYud8tHMgJFDssGBUZkEN2vFZ0h41efyXo9U0o90KVFWFBQWOz+Opnalqohh8qHnOczo1zabeLFf79pC81Y6QGNkSyQcikCAwEAAaNYMFYwVAYDVR0BBE0wS4AQ1x+ArbPOrv0XwUivnGidCKElMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbYIQp05JNk8LWoxCi4iS8owqcDANBgkqhkiG9w0BAQQFAAOBgQBU8cGNgEnkWLs3v433WBC2Sl6BiPk6IchsqfxECp1Q4j/gqsIe9xRNnjxD5YEj0HGdqjrKBwF8XrOXPgyXQXfM4ju3INGLSJ1WH/oODbgbKnqQ/7TSJ++y1x0lnDgh+ibqjchsrBrqzKfkBNOa4B3g1M9q1eNVDOyGWu7GiZAUTA==" /> … … 68 75 </endpoint> 69 76 <endpoint address="http://servdev.heuristiclab.com/Deployment-3.3/Admin.svc" 70 b inding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IAdmin"71 contract="HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.IAdmin"72 name="WSHttpBinding_IAdmin ">77 behaviorConfiguration="SerializationBehavior" binding="wsHttpBinding" 78 bindingConfiguration="WSHttpBinding_IAdmin1" contract="HeuristicLab.PluginInfrastructure.Advanced.DeploymentService.IAdmin" 79 name="WSHttpBinding_IAdmin1"> 73 80 <identity> 74 81 <certificate encodedValue="AwAAAAEAAAAUAAAAFhNc5P5CrrUsDAETV1gq2wDRXQ0gAAAAAQAAACcCAAAwggIjMIIBjKADAgECAhCnTkk2TwtajEKLiJLyjCpwMA0GCSqGSIb3DQEBBAUAMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbTAeFw0xMDAzMTAxNTI4MTJaFw0zOTEyMzEyMzU5NTlaMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEArJSMi2lAXj/Z9sMiLjiUmqUfNSfozaio/mjR6PxbDPBWZp6xTFdDLnBx+kHMBp+gc75hMI6wCFHB8PYud8tHMgJFDssGBUZkEN2vFZ0h41efyXo9U0o90KVFWFBQWOz+Opnalqohh8qHnOczo1zabeLFf79pC81Y6QGNkSyQcikCAwEAAaNYMFYwVAYDVR0BBE0wS4AQ1x+ArbPOrv0XwUivnGidCKElMCMxITAfBgNVBAMTGHNlcnZkZXYuaGV1cmlzdGljbGFiLmNvbYIQp05JNk8LWoxCi4iS8owqcDANBgkqhkiG9w0BAQQFAAOBgQBU8cGNgEnkWLs3v433WBC2Sl6BiPk6IchsqfxECp1Q4j/gqsIe9xRNnjxD5YEj0HGdqjrKBwF8XrOXPgyXQXfM4ju3INGLSJ1WH/oODbgbKnqQ/7TSJ++y1x0lnDgh+ibqjchsrBrqzKfkBNOa4B3g1M9q1eNVDOyGWu7GiZAUTA==" /> -
trunk/sources/HeuristicLab.Services.Deployment/3.3/App.config
r3084 r3179 1 <?xml version="1.0" encoding="utf-8" 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <configuration> 3 3 <configSections> 4 4 </configSections> 5 5 <system.diagnostics> 6 <!-- for logging. Make sure the IIS application user has write access rights for the output directory --> 7 <!--sources> 8 <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing"> 9 <listeners> 10 <add type="System.Diagnostics.DefaultTraceListener" name="Default"> 11 <filter type="" /> 12 </add> 13 <add name="ServiceModelMessageLoggingListener"> 14 <filter type="" /> 15 </add> 16 </listeners> 17 </source> 18 <source name="System.ServiceModel" switchValue="Warning, ActivityTracing" 19 propagateActivity="true"> 20 <listeners> 21 <add type="System.Diagnostics.DefaultTraceListener" name="Default"> 22 <filter type="" /> 23 </add> 24 <add name="ServiceModelTraceListener"> 25 <filter type="" /> 26 </add> 27 </listeners> 28 </source> 29 </sources> 30 <sharedListeners> 31 <add initializeData="C:\inetpub\wwwroot\Deployment-3.3\web_messages.svclog" 32 type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 33 name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp"> 34 <filter type="" /> 35 </add> 36 <add initializeData="C:\inetpub\wwwroot\Deployment-3.3\web_tracelog.svclog" 37 type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 38 name="ServiceModelTraceListener" traceOutputOptions="Timestamp"> 39 <filter type="" /> 40 </add> 41 </sharedListeners--> 6 42 </system.diagnostics> 7 43 <connectionStrings> 8 44 <remove name="LocalSqlServer" /> 9 <add name="HeuristicLab.Services.Deployment.DataAccess.Properties.Settings.HeuristicLab_PluginStoreConnectionString" 10 connectionString="Server=SERVDEV;Database=HeuristicLab.Deployment;Integrated Security=SSPI" /> 45 <add connectionString="Server=SERVDEV;Database=HeuristicLab.Deployment;Integrated Security=SSPI" name="HeuristicLab.Services.Deployment.DataAccess.Properties.Settings.HeuristicLab_PluginStoreConnectionString" /> 11 46 <add name="MyLocalSQLServer" connectionString="Initial Catalog=aspnetdb;data source=localhost;Integrated Security=SSPI;" /> 12 47 </connectionStrings> 48 <system.webServer> 49 <security> 50 <requestFiltering> 51 <requestLimits maxAllowedContentLength="100000000"/> 52 </requestFiltering> 53 </security> 54 </system.webServer> 13 55 <system.web> 14 56 <compilation debug="false" /> 57 <httpRuntime maxRequestLength="2097151" /> 15 58 <membership defaultProvider="MySqlMembershipProvider"> 16 59 <providers> … … 32 75 <bindings> 33 76 <wsHttpBinding> 34 <binding name="DefaultWsHttpBinding" maxBufferPoolSize="10000000" maxReceivedMessageSize=" 1000000">35 <readerQuotas maxDepth="1000" maxStringContentLength="16000" maxArrayLength=" 10000000" maxBytesPerRead="10000000" maxNameTableCharCount="16000" />77 <binding name="DefaultWsHttpBinding" maxBufferPoolSize="10000000" maxReceivedMessageSize="200000000"> 78 <readerQuotas maxDepth="1000" maxStringContentLength="16000" maxArrayLength="200000000" maxBytesPerRead="200000000" maxNameTableCharCount="16000" /> 36 79 <security mode="Message"> 37 80 <message clientCredentialType="UserName" /> … … 44 87 </bindings> 45 88 <diagnostics performanceCounters="Default"> 46 < messageLogging logMalformedMessages="false" logMessagesAtTransportLevel="false" />89 <!--<messageLogging logMalformedMessages="false" logMessagesAtTransportLevel="false" />--> 47 90 </diagnostics> 48 91 <services> 49 <service behaviorConfiguration="HeuristicLab.Services.Deployment.UpdateBehavior" name="HeuristicLab.Services.Deployment.Update"> 50 <endpoint address="" binding="wsHttpBinding" bindingConfiguration="DefaultWsHttpBinding" contract="HeuristicLab.Services.Deployment.IUpdate"> 51 </endpoint> 52 <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="DefaultMexHttpBinding" contract="IMetadataExchange" /> 92 <service behaviorConfiguration="HeuristicLab.Services.Deployment.UpdateBehavior" 93 name="HeuristicLab.Services.Deployment.Update"> 94 <endpoint address="" behaviorConfiguration="SerializationBehavior" 95 binding="wsHttpBinding" bindingConfiguration="DefaultWsHttpBinding" 96 contract="HeuristicLab.Services.Deployment.IUpdate" /> 97 <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="DefaultMexHttpBinding" 98 contract="IMetadataExchange" /> 53 99 </service> 54 <service behaviorConfiguration="HeuristicLab.Services.Deployment.AdminBehavior" name="HeuristicLab.Services.Deployment.Admin"> 55 <endpoint address="" binding="wsHttpBinding" bindingConfiguration="DefaultWsHttpBinding" contract="HeuristicLab.Services.Deployment.IAdmin"> 56 </endpoint> 57 <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="DefaultMexHttpBinding" contract="IMetadataExchange" /> 100 <service behaviorConfiguration="HeuristicLab.Services.Deployment.AdminBehavior" 101 name="HeuristicLab.Services.Deployment.Admin"> 102 <endpoint address="" behaviorConfiguration="SerializationBehavior" 103 binding="wsHttpBinding" bindingConfiguration="DefaultWsHttpBinding" 104 contract="HeuristicLab.Services.Deployment.IAdmin" /> 105 <endpoint address="mex" behaviorConfiguration="SerializationBehavior" 106 binding="mexHttpBinding" bindingConfiguration="DefaultMexHttpBinding" 107 contract="IMetadataExchange" /> 58 108 </service> 59 109 </services> 60 110 <behaviors> 111 <endpointBehaviors> 112 <behavior name="SerializationBehavior"> 113 <dataContractSerializer maxItemsInObjectGraph="1000000" /> 114 </behavior> 115 </endpointBehaviors> 61 116 <serviceBehaviors> 62 117 <behavior name="HeuristicLab.Services.Deployment.UpdateBehavior"> … … 64 119 <serviceDebug includeExceptionDetailInFaults="false" /> 65 120 <serviceCredentials> 66 <serviceCertificate findValue="servdev.heuristiclab.com" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName" /> 67 <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" membershipProviderName="MySqlMembershipProvider" /> 121 <serviceCertificate findValue="servdev.heuristiclab.com" storeLocation="LocalMachine" 122 storeName="My" x509FindType="FindBySubjectName" /> 123 <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" 124 membershipProviderName="MySqlMembershipProvider" /> 68 125 </serviceCredentials> 69 <serviceAuthorization principalPermissionMode="UseAspNetRoles" roleProviderName="MySqlRoleProvider" /> 126 <serviceAuthorization principalPermissionMode="UseAspNetRoles" 127 roleProviderName="MySqlRoleProvider" /> 70 128 </behavior> 71 129 <behavior name="HeuristicLab.Services.Deployment.AdminBehavior"> … … 73 131 <serviceDebug includeExceptionDetailInFaults="false" /> 74 132 <serviceCredentials> 75 <serviceCertificate findValue="servdev.heuristiclab.com" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName" /> 76 <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" membershipProviderName="MySqlMembershipProvider" /> 133 <serviceCertificate findValue="servdev.heuristiclab.com" storeLocation="LocalMachine" 134 storeName="My" x509FindType="FindBySubjectName" /> 135 <userNameAuthentication userNamePasswordValidationMode="MembershipProvider" 136 membershipProviderName="MySqlMembershipProvider" /> 77 137 </serviceCredentials> 78 <serviceAuthorization principalPermissionMode="UseAspNetRoles" roleProviderName="MySqlRoleProvider" /> 138 <serviceAuthorization principalPermissionMode="UseAspNetRoles" 139 roleProviderName="MySqlRoleProvider" /> 79 140 </behavior> 80 141 </serviceBehaviors>
Note: See TracChangeset
for help on using the changeset viewer.