Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/08/19 00:23:12 (5 years ago)
Author:
mkommend
Message:

#2520: Merged 16584, 16585,16594,16595, 16625, 16658, 16659, 16672, 16707, 16729, 16792, 16796, 16797, 16799, 16819, 16906, 16907, 16908, 16933, 16945, 16992, 16994, 16995, 16996, 16997, 17014, 17015, 17017, 17020, 17021, 17022, 17023, 17024, 17029, 17086, 17087, 17088, 17089 into stable.

Location:
stable
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Clients.Hive

  • stable/HeuristicLab.Clients.Hive/3.3/HeuristicLab.Clients.Hive-3.3.csproj

    r17097 r17105  
    107107  </PropertyGroup>
    108108  <ItemGroup>
    109     <Reference Include="Google.Protobuf, Version=3.6.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
    110       <HintPath>..\..\packages\Google.Protobuf.3.6.1\lib\net45\Google.Protobuf.dll</HintPath>
    111     </Reference>
    112     <Reference Include="HEAL.Attic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
    113       <HintPath>..\..\packages\HEAL.Attic.1.0.0-pre02\lib\net461\HEAL.Attic.dll</HintPath>
    114     </Reference>
    115109    <Reference Include="System" />
    116110    <Reference Include="System.Configuration" />
    117111    <Reference Include="System.Core" />
    118112    <Reference Include="System.Drawing" />
    119     <Reference Include="System.Drawing.Common, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
    120       <HintPath>..\..\packages\System.Drawing.Common.4.5.1\lib\net461\System.Drawing.Common.dll</HintPath>
    121     </Reference>
    122113    <Reference Include="System.Runtime.Remoting" />
    123114    <Reference Include="System.Runtime.Serialization" />
     
    152143      <SubType>Designer</SubType>
    153144    </None>
    154     <None Include="packages.config" />
    155145    <None Include="Plugin.cs.frame" />
    156146    <Compile Include="Exceptions\AddTaskToHiveException.cs" />
     
    272262    </ProjectReference>
    273263  </ItemGroup>
     264  <ItemGroup>
     265    <Reference Include="HEAL.Attic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
     266      <SpecificVersion>False</SpecificVersion>
     267      <HintPath>..\..\bin\HEAL.Attic.dll</HintPath>
     268      <Private>False</Private>
     269    </Reference>
     270  </ItemGroup>
    274271  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
    275272  <PropertyGroup>
  • stable/HeuristicLab.Clients.Hive/3.3/Plugin.cs.frame

    r17097 r17105  
    2929  [Plugin("HeuristicLab.Clients.Hive", "3.3.15.$WCREV$")]
    3030  [PluginFile("HeuristicLab.Clients.Hive-3.3.dll", PluginFileType.Assembly)]
     31  [PluginDependency("HeuristicLab.Attic", "1.0")]
    3132  [PluginDependency("HeuristicLab.Clients.Common", "3.3")]
    3233  [PluginDependency("HeuristicLab.Clients.Access", "3.3")] 
  • stable/HeuristicLab.Clients.Hive/3.3/Util/PersistenceUtil.cs

    r17097 r17105  
    4444      try {
    4545        return (T)ser.Deserialize(sjob);
    46       } catch (Exception) {
    47         // retry with old persistence
    48         using (MemoryStream memStream = new MemoryStream(sjob)) {
    49           return XmlParser.Deserialize<T>(memStream);
    50         }
     46      } catch (PersistenceException e) {
     47        if (e.InnerException is InvalidDataException) {
     48          // We assume the data was not serialized with HEAL.Attic, but with the former
     49          // XML-based persistence
     50          return DeserializeWithXmlParser<T>(sjob);
     51        } else throw;
     52      }
     53    }
     54
     55    private static T DeserializeWithXmlParser<T>(byte[] sjob) {
     56      using (MemoryStream memStream = new MemoryStream(sjob)) {
     57        return XmlParser.Deserialize<T>(memStream);
    5158      }
    5259    }
Note: See TracChangeset for help on using the changeset viewer.