Skip to content

Commit 50e71dc

Browse files
authored
Merge pull request #3 from nsip/release-3-2-1
Support for SIF Infrastructure 3.2.1.
2 parents 58b3251 + ae89c2a commit 50e71dc

45 files changed

Lines changed: 60503 additions & 81 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Code/Sif3Framework/Sif.Framework.EnvironmentProvider/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
//
3232
// You can specify all the values or you can default the Revision and Build Numbers
3333
// by using the '*' as shown below:
34-
[assembly: AssemblyVersion("3.2.0.0")]
35-
[assembly: AssemblyFileVersion("3.2.0.0")]
34+
[assembly: AssemblyVersion("3.2.1.0")]
35+
[assembly: AssemblyFileVersion("3.2.1.0")]

Code/Sif3Framework/Sif.Framework.EnvironmentProvider/Sif.Framework.EnvironmentProvider.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
<SpecificVersion>False</SpecificVersion>
5858
<HintPath>..\packages\NHibernate.4.0.1.4000\lib\net40\NHibernate.dll</HintPath>
5959
</Reference>
60-
<Reference Include="Sif.Specification.Infrastructure, Version=3.0.1.0, Culture=neutral, processorArchitecture=MSIL">
60+
<Reference Include="Sif.Specification.Infrastructure, Version=3.2.1.0, Culture=neutral, processorArchitecture=MSIL">
6161
<SpecificVersion>False</SpecificVersion>
62-
<HintPath>..\..\..\SharedLibs\Sif.Specification.Infrastructure 3.2.0\Sif.Specification.Infrastructure.dll</HintPath>
62+
<HintPath>..\..\..\SharedLibs\Sif.Specification.Infrastructure 3.2.1\Sif.Specification.Infrastructure.dll</HintPath>
6363
</Reference>
6464
<Reference Include="System.Data.SQLite, Version=1.0.94.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL">
6565
<SpecificVersion>False</SpecificVersion>

Code/Sif3Framework/Sif.Framework.Tests/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("3.2.0.0")]
36-
[assembly: AssemblyFileVersion("3.2.0.0")]
35+
[assembly: AssemblyVersion("3.2.1.0")]
36+
[assembly: AssemblyFileVersion("3.2.1.0")]

Code/Sif3Framework/Sif.Framework.Tests/Sif.Framework.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
<SpecificVersion>False</SpecificVersion>
4444
<HintPath>..\packages\NHibernate.4.0.1.4000\lib\net40\NHibernate.dll</HintPath>
4545
</Reference>
46-
<Reference Include="Sif.Specification.Infrastructure, Version=3.0.1.0, Culture=neutral, processorArchitecture=MSIL">
46+
<Reference Include="Sif.Specification.Infrastructure, Version=3.2.0.0, Culture=neutral, processorArchitecture=MSIL">
4747
<SpecificVersion>False</SpecificVersion>
48-
<HintPath>..\..\..\SharedLibs\Sif.Specification.Infrastructure 3.2.0\Sif.Specification.Infrastructure.dll</HintPath>
48+
<HintPath>..\..\..\SharedLibs\Sif.Specification.Infrastructure 3.2.1\Sif.Specification.Infrastructure.dll</HintPath>
4949
</Reference>
5050
<Reference Include="System" />
5151
<Reference Include="System.ComponentModel.DataAnnotations" />
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright 2017 Systemic Pty Ltd
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
18+
namespace Sif.Framework.Model.Infrastructure
19+
{
20+
21+
/// <summary>
22+
/// Job initialisation object.
23+
/// </summary>
24+
public class Initialization
25+
{
26+
27+
/// <summary>
28+
/// Payload.
29+
/// </summary>
30+
public virtual object Payload { get; set; }
31+
32+
/// <summary>
33+
/// Phase name.
34+
/// </summary>
35+
public virtual string PhaseName { get; set; }
36+
37+
}
38+
39+
}

Code/Sif3Framework/Sif.Framework/Model/Infrastructure/Job.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Crown Copyright © Department for Education (UK) 2016
3+
* Copyright 2017 Systemic Pty Ltd
34
*
45
* Licensed under the Apache License, Version 2.0 (the "License");
56
* you may not use this file except in compliance with the License.
@@ -14,12 +15,10 @@
1415
* limitations under the License.
1516
*/
1617

17-
using Sif.Framework.Model.DataModels;
1818
using Sif.Framework.Model.Persistence;
1919
using Sif.Framework.Utils;
2020
using System;
2121
using System.Collections.Generic;
22-
using System.Xml.Serialization;
2322

2423
namespace Sif.Framework.Model.Infrastructure
2524
{
@@ -76,6 +75,11 @@ public class Job : IPersistable<Guid>
7675
/// </summary>
7776
public virtual IDictionary<string, Phase> Phases { get; set; }
7877

78+
/// <summary>
79+
/// Initialisation object associated with the job.
80+
/// </summary>
81+
public virtual Initialization Initialization { get; set; }
82+
7983
/// <summary>
8084
/// Basic constructor that sets logical default values
8185
/// </summary>

Code/Sif3Framework/Sif.Framework/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
88
[assembly: AssemblyTitle("Sif.Framework")]
9-
[assembly: AssemblyDescription("Core library of the SIF3 Framework based on SIF Infrastructure 3.2.")]
9+
[assembly: AssemblyDescription("Core library of the SIF3 Framework based on SIF Infrastructure 3.2.1")]
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("Systemic Pty Ltd")]
1212
[assembly: AssemblyProduct("Sif.Framework")]
@@ -32,8 +32,8 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("3.2.0.0")]
36-
[assembly: AssemblyFileVersion("3.2.0.0")]
35+
[assembly: AssemblyVersion("3.2.1.0")]
36+
[assembly: AssemblyFileVersion("3.2.1.0")]
3737

3838
// Configure log4net using the .config file
3939
[assembly: log4net.Config.XmlConfigurator(Watch = true)]

Code/Sif3Framework/Sif.Framework/Service/Mapper/MapperFactory.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Systemic Pty Ltd
2+
* Copyright 2017 Systemic Pty Ltd
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,7 +19,6 @@
1919
using Sif.Framework.Model.Requests;
2020
using Sif.Framework.Model.Responses;
2121
using Sif.Specification.Infrastructure;
22-
using System;
2322
using System.Collections.Generic;
2423
using System.Xml;
2524
using Environment = Sif.Framework.Model.Infrastructure.Environment;
@@ -165,7 +164,8 @@ static MapperFactory()
165164
AutoMapper.Mapper.CreateMap<Environment, environmentType>()
166165
.ForMember(dest => dest.infrastructureServices, opt => opt.MapFrom(src => src.InfrastructureServices.Values))
167166
.ForMember(dest => dest.provisionedZones, opt => opt.MapFrom(src => src.ProvisionedZones.Values))
168-
.ForMember(dest => dest.typeSpecified, opt => opt.UseValue<bool>(true));
167+
.ForMember(dest => dest.typeSpecified, opt => opt.UseValue<bool>(true))
168+
.ForMember(dest => dest.fingerprint, opt => opt.Ignore());
169169
AutoMapper.Mapper.CreateMap<environmentType, Environment>();
170170

171171
AutoMapper.Mapper.CreateMap<ProductIdentity, productIdentityType>();
@@ -220,6 +220,9 @@ static MapperFactory()
220220
AutoMapper.Mapper.CreateMap<phaseType[], IDictionary<string, Phase>>()
221221
.ConvertUsing<PhasesConverter>();
222222

223+
AutoMapper.Mapper.CreateMap<Initialization, initializationType>();
224+
AutoMapper.Mapper.CreateMap<initializationType, Initialization>();
225+
223226
AutoMapper.Mapper.CreateMap<Job, jobType>()
224227
.ForMember(dest => dest.phases, opt => opt.MapFrom(src => src.Phases.Values))
225228
.ForMember(dest => dest.createdSpecified, opt => opt.MapFrom(src => src.Created != null))

Code/Sif3Framework/Sif.Framework/Sif.Framework.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@
5757
<SpecificVersion>False</SpecificVersion>
5858
<HintPath>..\packages\NHibernate.4.0.1.4000\lib\net40\NHibernate.dll</HintPath>
5959
</Reference>
60-
<Reference Include="Sif.Specification.Infrastructure">
61-
<HintPath>..\..\..\SharedLibs\Sif.Specification.Infrastructure 3.2.0\Sif.Specification.Infrastructure.dll</HintPath>
60+
<Reference Include="Sif.Specification.Infrastructure, Version=3.2.0.0, Culture=neutral, processorArchitecture=MSIL">
61+
<SpecificVersion>False</SpecificVersion>
62+
<HintPath>..\..\..\SharedLibs\Sif.Specification.Infrastructure 3.2.1\Sif.Specification.Infrastructure.dll</HintPath>
6263
</Reference>
6364
<Reference Include="System" />
6465
<Reference Include="System.Configuration" />
@@ -89,6 +90,7 @@
8990
<Compile Include="Model\Authentication\AuthenticationMethod.cs" />
9091
<Compile Include="Model\Authentication\AuthorisationToken.cs" />
9192
<Compile Include="Model\Exceptions\InvalidAuthorisationTokenException.cs" />
93+
<Compile Include="Model\Infrastructure\Initialization.cs" />
9294
<Compile Include="Model\Infrastructure\SifObjectBinding.cs" />
9395
<Compile Include="Providers\FunctionalServiceProvider.cs" />
9496
<Compile Include="Model\DataModels\ServiceClassInfo.cs" />

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Au.Consumer/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("3.2.0.0")]
36-
[assembly: AssemblyFileVersion("3.2.0.0")]
35+
[assembly: AssemblyVersion("3.2.1.0")]
36+
[assembly: AssemblyFileVersion("3.2.1.0")]
3737

3838
// Configure log4net using the .config file
3939
[assembly: log4net.Config.XmlConfigurator(Watch = true)]

0 commit comments

Comments
 (0)