Skip to content

Commit 87cc095

Browse files
committed
Merge branch 'develop'
2 parents bfcb168 + bf4c025 commit 87cc095

31 files changed

+184
-119
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: csharp
2+
solution: IntegrationEngine.sln
3+
4+
script:
5+
- xbuild /p:Configuration=Release IntegrationEngine.sln

IntegrationEngine.ConsoleHost/IntegrationEngine.ConsoleHost.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
<Project>{3F3794D7-4078-4D26-954C-7864173EDD86}</Project>
8686
<Name>IntegrationEngine.Core</Name>
8787
</ProjectReference>
88+
<ProjectReference Include="..\IntegrationEngine.Model\IntegrationEngine.Model.csproj">
89+
<Project>{0b499fe4-0bdb-4080-bcb7-f8d4ce54a4ff}</Project>
90+
<Name>IntegrationEngine.Model</Name>
91+
</ProjectReference>
8892
<ProjectReference Include="..\IntegrationEngine\IntegrationEngine.csproj">
8993
<Project>{7D49353D-A68C-4ACA-A6A5-40B1C314C30E}</Project>
9094
<Name>IntegrationEngine</Name>

IntegrationEngine.ConsoleHost/IntegrationJobs/CarReport/CarMailMessageJob.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
using IntegrationEngine.Core.Jobs;
22
using IntegrationEngine.Core.Mail;
33
using System;
4+
using System.Collections.Generic;
45
using System.Net.Mail;
56

67
namespace IntegrationEngine.ConsoleHost.Car
78
{
8-
public class CarMailMessageJob : IMailJob
9+
public class CarMailMessageJob : IMailJob, IParameterizedJob
910
{
1011
public IMailClient MailClient { get; set; }
11-
public TimeSpan Interval { get; set; }
12-
public DateTimeOffset StartTimeUtc { get; set; }
12+
public IDictionary<string, string> Parameters { get; set; }
1313

1414
public void Run()
1515
{

IntegrationEngine.Core/IntegrationEngine.Core.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<Compile Include="Jobs\IIntegrationJob.cs" />
8787
<Compile Include="Jobs\ILogJob.cs" />
8888
<Compile Include="Jobs\IMailJob.cs" />
89+
<Compile Include="Jobs\IParameterizedJob.cs" />
8990
<Compile Include="Jobs\ISqlJob.cs" />
9091
<Compile Include="Jobs\SqlJob.cs" />
9192
<Compile Include="Mail\IMailClient.cs" />
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using IntegrationEngine.Model;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace IntegrationEngine.Core.Jobs
9+
{
10+
public interface IParameterizedJob : IIntegrationJob, IHasParameters
11+
{}
12+
}

IntegrationEngine.Model.net40/IntegrationEngine.Model.net40.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,21 @@
6060
<Compile Include="..\IntegrationEngine.Model\ICronTrigger.cs">
6161
<Link>ICronTrigger.cs</Link>
6262
</Compile>
63+
<Compile Include="..\IntegrationEngine.Model\IHasParameters.cs">
64+
<Link>IHasParameters.cs</Link>
65+
</Compile>
6366
<Compile Include="..\IntegrationEngine.Model\IHasStringId.cs">
6467
<Link>IHasStringId.cs</Link>
6568
</Compile>
69+
<Compile Include="..\IntegrationEngine.Model\IJobType.cs">
70+
<Link>IJobType.cs</Link>
71+
</Compile>
6672
<Compile Include="..\IntegrationEngine.Model\ISimpleTrigger.cs">
6773
<Link>ISimpleTrigger.cs</Link>
6874
</Compile>
75+
<Compile Include="..\IntegrationEngine.Model\JobType.cs">
76+
<Link>JobType.cs</Link>
77+
</Compile>
6978
<Compile Include="..\IntegrationEngine.Model\TriggerPropertyExtension.cs">
7079
<Link>TriggerPropertyExtension.cs</Link>
7180
</Compile>

IntegrationEngine.Model/CronTrigger.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using CronExpressionDescriptor;
2-
using Nest;
1+
using Nest;
32
using System;
3+
using System.Collections.Generic;
44

55
namespace IntegrationEngine.Model
66
{
@@ -11,6 +11,7 @@ public class CronTrigger : ICronTrigger
1111
public virtual string CronExpressionString { get; set; }
1212
public virtual string TimeZoneId { get; set; }
1313
public virtual int StateId { get; set; }
14+
public virtual IDictionary<string, string> Parameters { get; set; }
1415
[ElasticProperty(OptOut = true)]
1516
public virtual string CronExpressionDescription { get { return CronExpressionString.GetHumanReadableCronSchedule(); } }
1617
[ElasticProperty(OptOut = true)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace IntegrationEngine.Model
8+
{
9+
public interface IHasParameters
10+
{
11+
IDictionary<string, string> Parameters { get; set; }
12+
}
13+
}

IntegrationEngine.Model/IIntegrationJobTrigger.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
using System;
2+
using System.Collections.Generic;
23

34
namespace IntegrationEngine.Model
45
{
5-
public interface IIntegrationJobTrigger : IHasStringId
6+
public interface IIntegrationJobTrigger : IHasStringId, IHasParameters
67
{
78
string JobType { get; set; }
89
int StateId { get; set; }
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace IntegrationEngine.Model
8+
{
9+
public interface IJobType
10+
{
11+
string Name { get; set; }
12+
string FullName { get; set; }
13+
}
14+
}

0 commit comments

Comments
 (0)