Skip to content

Commit c4baae6

Browse files
committed
Allow API to accept Parameters for triggers
1 parent c0b832e commit c4baae6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

IntegrationEngine/IntegrationEngine.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@
151151
<Compile Include="Configuration\MessageQueueConfiguration.cs" />
152152
<Compile Include="Configuration\WebApiConfiguration.cs" />
153153
<Compile Include="DataAnnotations\CronExpressionStringAttribute.cs" />
154-
<Compile Include="DataAnnotations\TimeZoneIdAttribute.cs" />
155154
<Compile Include="MessageQueue\DispatchMessage.cs" />
156155
<Compile Include="MessageQueue\IMessageQueueListener.cs" />
157156
<Compile Include="MessageQueue\MsmqClient.cs" />
@@ -211,4 +210,4 @@
211210
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
212211
<ItemGroup />
213212
<ItemGroup />
214-
</Project>
213+
</Project>

IntegrationEngine/Scheduler/CronTrigger.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
using IntegrationEngine.DataAnnotations;
2+
using System.Collections.Generic;
23
using System.ComponentModel.DataAnnotations;
34

45
namespace IntegrationEngine.Scheduler
56
{
6-
public class CronTrigger : IntegrationEngine.Model.CronTrigger
7+
public class CronTrigger : IntegrationEngine.Model.CronTrigger, IntegrationEngine.Model.IHasParameters
78
{
89
[Required]
910
[JobType]
@@ -13,5 +14,7 @@ public class CronTrigger : IntegrationEngine.Model.CronTrigger
1314
public override string CronExpressionString { get; set; }
1415
[Range(0, 1)]
1516
public override int StateId { get; set; }
17+
18+
public override IDictionary<string, string> Parameters { get; set; }
1619
}
1720
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
using IntegrationEngine.DataAnnotations;
2+
using System.Collections.Generic;
23
using System.ComponentModel.DataAnnotations;
34

45
namespace IntegrationEngine.Scheduler
56
{
6-
public class SimpleTrigger : IntegrationEngine.Model.SimpleTrigger
7+
public class SimpleTrigger : IntegrationEngine.Model.SimpleTrigger, IntegrationEngine.Model.IHasParameters
78
{
89
[Required]
910
[JobType]
1011
public override string JobType { get; set; }
1112
[Range(0, 1)]
1213
public override int StateId { get; set; }
14+
public override IDictionary<string, string> Parameters { get; set; }
1315
}
1416
}

0 commit comments

Comments
 (0)