From 7f87dd85d3db2763eddf10b5e10cd173defc97a6 Mon Sep 17 00:00:00 2001 From: Mohamed Ali Date: Tue, 21 Sep 2021 12:58:46 +0300 Subject: [PATCH] Multi targeting for Webhooks (#1558) Co-authored-by: Mohamed Ali --- .../Elsa.Activities.Webhooks.csproj | 2 +- .../Elsa.Webhooks.Api/Elsa.Webhooks.Api.csproj | 2 +- .../Elsa.Webhooks.Api/IsExternalInit.cs | 17 +++++++++++++++++ ...ooks.Persistence.EntityFramework.Core.csproj | 2 +- ...oks.Persistence.EntityFramework.MySql.csproj | 2 +- ...ersistence.EntityFramework.PostgreSql.csproj | 2 +- ...Persistence.EntityFramework.SqlServer.csproj | 2 +- ...ks.Persistence.EntityFramework.Sqlite.csproj | 2 +- .../Elsa.Webhooks.Persistence.MongoDb.csproj | 2 +- .../Elsa.Webhooks.Persistence.YesSql.csproj | 2 +- 10 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 src/activities/webhooks/Elsa.Webhooks.Api/IsExternalInit.cs diff --git a/src/activities/webhooks/Elsa.Activities.Webhooks/Elsa.Activities.Webhooks.csproj b/src/activities/webhooks/Elsa.Activities.Webhooks/Elsa.Activities.Webhooks.csproj index 17f6b2faf..db4b394be 100644 --- a/src/activities/webhooks/Elsa.Activities.Webhooks/Elsa.Activities.Webhooks.csproj +++ b/src/activities/webhooks/Elsa.Activities.Webhooks/Elsa.Activities.Webhooks.csproj @@ -4,7 +4,7 @@ - net5.0 + netcoreapp3.1;net5.0 Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides Webhook activities. diff --git a/src/activities/webhooks/Elsa.Webhooks.Api/Elsa.Webhooks.Api.csproj b/src/activities/webhooks/Elsa.Webhooks.Api/Elsa.Webhooks.Api.csproj index 527277037..8eedc40d3 100644 --- a/src/activities/webhooks/Elsa.Webhooks.Api/Elsa.Webhooks.Api.csproj +++ b/src/activities/webhooks/Elsa.Webhooks.Api/Elsa.Webhooks.Api.csproj @@ -4,7 +4,7 @@ - net5.0 + netcoreapp3.1;net5.0 Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides Webhook API endpoints for managing webhook definitions. diff --git a/src/activities/webhooks/Elsa.Webhooks.Api/IsExternalInit.cs b/src/activities/webhooks/Elsa.Webhooks.Api/IsExternalInit.cs new file mode 100644 index 000000000..8ce226317 --- /dev/null +++ b/src/activities/webhooks/Elsa.Webhooks.Api/IsExternalInit.cs @@ -0,0 +1,17 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.ComponentModel; + +// ReSharper disable once CheckNamespace +namespace System.Runtime.CompilerServices +{ + /// + /// Reserved to be used by the compiler for tracking metadata. + /// This class should not be used by developers in source code. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + internal static class IsExternalInit + { + } +} \ No newline at end of file diff --git a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.Core/Elsa.Webhooks.Persistence.EntityFramework.Core.csproj b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.Core/Elsa.Webhooks.Persistence.EntityFramework.Core.csproj index 551a94d42..f6473e848 100644 --- a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.Core/Elsa.Webhooks.Persistence.EntityFramework.Core.csproj +++ b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.Core/Elsa.Webhooks.Persistence.EntityFramework.Core.csproj @@ -4,7 +4,7 @@ - net5.0 + netcoreapp3.1;net5.0 Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides Webhook EF Core persistence. diff --git a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.MySql/Elsa.Webhooks.Persistence.EntityFramework.MySql.csproj b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.MySql/Elsa.Webhooks.Persistence.EntityFramework.MySql.csproj index df71dd77e..be8b31dce 100644 --- a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.MySql/Elsa.Webhooks.Persistence.EntityFramework.MySql.csproj +++ b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.MySql/Elsa.Webhooks.Persistence.EntityFramework.MySql.csproj @@ -4,7 +4,7 @@ - net5.0 + netcoreapp3.1;net5.0 Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides the MySql EF Core provider for Webhook persistence. diff --git a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.PostgreSql/Elsa.Webhooks.Persistence.EntityFramework.PostgreSql.csproj b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.PostgreSql/Elsa.Webhooks.Persistence.EntityFramework.PostgreSql.csproj index f4d51d0ee..77b443fa1 100644 --- a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.PostgreSql/Elsa.Webhooks.Persistence.EntityFramework.PostgreSql.csproj +++ b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.PostgreSql/Elsa.Webhooks.Persistence.EntityFramework.PostgreSql.csproj @@ -4,7 +4,7 @@ - net5.0 + netcoreapp3.1;net5.0 Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides the PostgreSQL EF Core provider for Webhook persistence. diff --git a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.SqlServer/Elsa.Webhooks.Persistence.EntityFramework.SqlServer.csproj b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.SqlServer/Elsa.Webhooks.Persistence.EntityFramework.SqlServer.csproj index 5d6ee5245..d33598e19 100644 --- a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.SqlServer/Elsa.Webhooks.Persistence.EntityFramework.SqlServer.csproj +++ b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.SqlServer/Elsa.Webhooks.Persistence.EntityFramework.SqlServer.csproj @@ -4,7 +4,7 @@ - net5.0 + netcoreapp3.1;net5.0 Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides the SqlServer EF Core provider for Webhook persistence. diff --git a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.Sqlite/Elsa.Webhooks.Persistence.EntityFramework.Sqlite.csproj b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.Sqlite/Elsa.Webhooks.Persistence.EntityFramework.Sqlite.csproj index adb34eac5..2b8d0e60f 100644 --- a/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.Sqlite/Elsa.Webhooks.Persistence.EntityFramework.Sqlite.csproj +++ b/src/activities/webhooks/Elsa.Webhooks.Persistence.EntityFramework.Sqlite/Elsa.Webhooks.Persistence.EntityFramework.Sqlite.csproj @@ -4,7 +4,7 @@ - net5.0 + netcoreapp3.1;net5.0 Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides the Sqlite EF Core provider for Webhook persistence. diff --git a/src/activities/webhooks/Elsa.Webhooks.Persistence.MongoDb/Elsa.Webhooks.Persistence.MongoDb.csproj b/src/activities/webhooks/Elsa.Webhooks.Persistence.MongoDb/Elsa.Webhooks.Persistence.MongoDb.csproj index e1a599a06..27eeee9a2 100644 --- a/src/activities/webhooks/Elsa.Webhooks.Persistence.MongoDb/Elsa.Webhooks.Persistence.MongoDb.csproj +++ b/src/activities/webhooks/Elsa.Webhooks.Persistence.MongoDb/Elsa.Webhooks.Persistence.MongoDb.csproj @@ -4,7 +4,7 @@ - net5.0 + netcoreapp3.1;net5.0 Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides the MongoDB provider for Webhook persistence. diff --git a/src/activities/webhooks/Elsa.Webhooks.Persistence.YesSql/Elsa.Webhooks.Persistence.YesSql.csproj b/src/activities/webhooks/Elsa.Webhooks.Persistence.YesSql/Elsa.Webhooks.Persistence.YesSql.csproj index 9ed7138ef..13ae3d664 100644 --- a/src/activities/webhooks/Elsa.Webhooks.Persistence.YesSql/Elsa.Webhooks.Persistence.YesSql.csproj +++ b/src/activities/webhooks/Elsa.Webhooks.Persistence.YesSql/Elsa.Webhooks.Persistence.YesSql.csproj @@ -4,7 +4,7 @@ - net5.0 + netcoreapp3.1;net5.0 Elsa is a set of workflow libraries and tools that enable lean and mean workflowing capabilities in any .NET Core application. This package provides the YesSQL provider for Webhook persistence.