Changeset 2811 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 02/16/10 12:44:12 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure
- Files:
-
- 6 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManager.cs
r2790 r2811 27 27 using System.IO; 28 28 using System.ComponentModel; 29 using UpdateService = HeuristicLab.PluginInfrastructure.PluginUpdateService;30 29 using System.Reflection; 31 30 … … 185 184 var pluginDescriptions = from name in pluginNames 186 185 select GetPluginDescription(name); 187 Dictionary< UpdateService.PluginDescription, string> matchingPlugins = new Dictionary<UpdateService.PluginDescription, string>();186 Dictionary<DeploymentService.PluginDescription, string> matchingPlugins = new Dictionary<DeploymentService.PluginDescription, string>(); 188 187 foreach (var updateLocation in HeuristicLab.PluginInfrastructure.Properties.Settings.Default.UpdateLocations) { 189 using (var client = new UpdateService.UpdateClient("", updateLocation)) {188 using (var client = new DeploymentService.UpdateClient("", updateLocation)) { 190 189 var updateLocationMatchingPlugins = from desc in pluginDescriptions 191 190 from info in client.GetPlugins() 192 191 where desc.Name == info.Name 193 192 select info; 194 foreach ( UpdateService.PluginDescription info in updateLocationMatchingPlugins) {193 foreach (DeploymentService.PluginDescription info in updateLocationMatchingPlugins) { 195 194 // keep only the highest version of any plugin 196 195 var existingPlugin = matchingPlugins.Keys.FirstOrDefault(x => x.Name == info.Name); … … 207 206 var groupedInfos = matchingPlugins.GroupBy(x => x.Value); 208 207 foreach (var group in groupedInfos) { 209 using (var client = new UpdateService.UpdateClient(group.Key)) {208 using (var client = new DeploymentService.UpdateClient(group.Key)) { 210 209 foreach (var info in group) { 211 210 client.GetPlugin(info.Key); -
trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/InstallationManagerConsole.cs
r2790 r2811 27 27 using System.IO; 28 28 using System.ComponentModel; 29 using UpdateService = HeuristicLab.PluginInfrastructure.PluginUpdateService; 29 30 30 31 31 namespace HeuristicLab.PluginInfrastructure.Advanced { … … 44 44 void installManager_PreUpdatePlugin(object sender, PluginInfrastructureCancelEventArgs e) { 45 45 Console.WriteLine("Following plugins are updated:"); 46 var infos = (IEnumerable< UpdateService.PluginDescription>)e.Entity;46 var infos = (IEnumerable<PluginDescription>)e.Entity; 47 47 foreach (var info in infos) { 48 48 Console.WriteLine(info.Name + " " + info.Version); … … 54 54 55 55 void installManager_PluginUpdated(object sender, PluginInfrastructureEventArgs e) { 56 foreach (var info in (IEnumerable< UpdateService.PluginDescription>)e.Entity)56 foreach (var info in (IEnumerable<PluginDescription>)e.Entity) 57 57 Console.WriteLine("Updated: {0}", info.Name); 58 58 } -
trunk/sources/HeuristicLab.PluginInfrastructure/HeuristicLab.PluginInfrastructure.csproj
r2783 r2811 92 92 </ItemGroup> 93 93 <ItemGroup> 94 <Compile Include="Advanced\DeploymentService\DeploymentService.cs" /> 94 95 <Compile Include="Advanced\InstallationManagerConsole.cs" /> 95 96 <Compile Include="Advanced\InstallationManager.cs" /> … … 99 100 <Compile Include="Advanced\InstallationManagerForm.Designer.cs"> 100 101 <DependentUpon>InstallationManagerForm.cs</DependentUpon> 102 </Compile> 103 <Compile Include="Advanced\DeploymentService\PluginDescription.cs"> 104 <SubType>Code</SubType> 105 </Compile> 106 <Compile Include="Advanced\DeploymentService\ProductDescription.cs"> 107 <SubType>Code</SubType> 101 108 </Compile> 102 109 <Compile Include="Attributes\ApplicationAttribute.cs" /> … … 155 162 <LastGenOutput>Settings.Designer.cs</LastGenOutput> 156 163 </None> 157 <None Include="Service References\PluginUpdateService\HeuristicLab.Services.Deployment.DataAccess.xsd" />158 <None Include="Service References\PluginUpdateService\service.wsdl" />159 <None Include="Service References\PluginUpdateService\service.xsd" />160 <None Include="Service References\PluginUpdateService\service1.xsd" />161 <None Include="Service References\PluginUpdateService\System.xsd" />162 164 <Compile Include="Properties\Settings.Designer.cs"> 163 165 <AutoGen>True</AutoGen> … … 166 168 </Compile> 167 169 <Compile Include="Sandboxing\SandboxManager.cs" /> 168 <Compile Include="Service References\PluginUpdateService\Reference.cs">169 <AutoGen>True</AutoGen>170 <DesignTime>True</DesignTime>171 <DependentUpon>Reference.svcmap</DependentUpon>172 </Compile>173 170 <Compile Include="Starter\SplashScreen.cs"> 174 171 <SubType>Form</SubType> … … 196 193 <Content Include="Resources\List.gif" /> 197 194 <Content Include="Resources\Logo_white.gif" /> 198 <None Include="Service References\PluginUpdateService\HeuristicLab.PluginInfrastructure.PluginUpdateService.PluginDescription.datasource"> 199 <DependentUpon>Reference.svcmap</DependentUpon> 200 </None> 201 <None Include="Service References\PluginUpdateService\HeuristicLab.PluginInfrastructure.PluginUpdateService.ProductDescription.datasource"> 202 <DependentUpon>Reference.svcmap</DependentUpon> 203 </None> 204 <None Include="Service References\PluginUpdateService\Reference.svcmap"> 205 <Generator>WCF Proxy Generator</Generator> 206 <LastGenOutput>Reference.cs</LastGenOutput> 207 </None> 208 <None Include="Service References\PluginUpdateService\configuration.svcinfo" /> 209 <None Include="Service References\PluginUpdateService\configuration91.svcinfo" /> 195 <None Include="Advanced\DeploymentService\output.config" /> 196 <None Include="Advanced\DeploymentService\RegenerateServiceClasses.cmd" /> 210 197 </ItemGroup> 211 198 <ItemGroup> 212 199 <WCFMetadata Include="Service References\" /> 213 </ItemGroup>214 <ItemGroup>215 <WCFMetadataStorage Include="Service References\PluginUpdateService\" />216 200 </ItemGroup> 217 201 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> -
trunk/sources/HeuristicLab.PluginInfrastructure/app.config
r2783 r2811 25 25 </applicationSettings> 26 26 <system.serviceModel> 27 <bindings> 28 <wsHttpBinding> 29 <binding name="WSHttpBinding_IUpdate" closeTimeout="00:01:00" 30 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 31 bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" 32 maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 33 messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" 34 allowCookies="false"> 35 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 36 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 37 <reliableSession ordered="true" inactivityTimeout="00:10:00" 38 enabled="false" /> 39 <security mode="Message"> 40 <transport clientCredentialType="Windows" proxyCredentialType="None" 41 realm="" /> 42 <message clientCredentialType="Windows" negotiateServiceCredential="true" 43 algorithmSuite="Default" establishSecurityContext="true" /> 44 </security> 45 </binding> 46 </wsHttpBinding> 47 </bindings> 48 <client> 49 <endpoint address="http://localhost:8731/Design_Time_Addresses/HeuristicLab.Services.Deployment/Update/" 50 binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IUpdate" 51 contract="PluginUpdateService.IUpdate" name="WSHttpBinding_IUpdate"> 52 <identity> 53 <dns value="localhost" /> 54 </identity> 55 </endpoint> 56 </client> 27 <bindings /> 28 <client /> 57 29 </system.serviceModel> 58 30 </configuration>
Note: See TracChangeset
for help on using the changeset viewer.