Fix warnings
This commit is contained in:
parent
b9e164747d
commit
68ffd91ccc
|
|
@ -13,12 +13,12 @@
|
|||
<PackageTags>elsa, workflows, distributed lock, redis</PackageTags>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\core\Elsa.Core\Elsa.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DistributedLock.Redis" Version="1.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\core\Elsa.Core\Elsa.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -11,4 +11,8 @@
|
|||
<ProjectReference Include="..\..\..\activities\Elsa.Activities.MassTransit\Elsa.Activities.MassTransit.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1"/>
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\core\Elsa\Elsa.csproj"/>
|
||||
<ProjectReference Include="..\..\..\core\Elsa\Elsa.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using Elsa;
|
||||
using Elsa.Caching.Rebus.Extensions;
|
||||
using Elsa.Persistence.EntityFramework.Core.Extensions;
|
||||
using Elsa.Persistence.EntityFramework.Sqlite;
|
||||
using Elsa.Rebus.AzureServiceBus;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
|
@ -25,10 +27,14 @@ namespace ElsaDashboard.Samples.AspNetCore.Monolith
|
|||
|
||||
// Elsa Server.
|
||||
var elsaSection = Configuration.GetSection("Elsa");
|
||||
|
||||
var serviceBusConnectionString = Configuration.GetConnectionString("ASB");
|
||||
|
||||
services
|
||||
.AddElsa(options => options
|
||||
.UseEntityFrameworkPersistence(ef => ef.UseSqlite())
|
||||
.UseAzureServiceBus(serviceBusConnectionString)
|
||||
.UseRebusCacheSignal()
|
||||
.AddConsoleActivities()
|
||||
.AddHttpActivities(elsaSection.GetSection("Server").Bind)
|
||||
.AddEmailActivities(elsaSection.GetSection("Smtp").Bind)
|
||||
|
|
@ -36,6 +42,7 @@ namespace ElsaDashboard.Samples.AspNetCore.Monolith
|
|||
.AddJavaScriptActivities()
|
||||
.AddActivitiesFrom<Startup>()
|
||||
.AddFeatures(new[] { typeof(Startup) }, Configuration)
|
||||
.WithContainerName(elsaSection.GetSection("Server:ContainerName").Get<string>())
|
||||
);
|
||||
|
||||
services
|
||||
|
|
|
|||
|
|
@ -15,4 +15,8 @@
|
|||
<ProjectReference Include="..\..\..\persistence\Elsa.Persistence.EntityFramework\Elsa.Persistence.EntityFramework.MySql\Elsa.Persistence.EntityFramework.MySql.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
<PackageReference Include="Moq" Version="4.16.1" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
|
||||
<PackageReference Include="NodaTime.Testing" Version="3.0.5" />
|
||||
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
|
||||
<PackageReference Include="xunit" Version="2.4.1" />
|
||||
<PackageReference Include="XunitXml.TestLogger" Version="3.0.66" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" />
|
||||
<PackageReference Include="NodaTime" Version="3.0.5" />
|
||||
<PackageReference Include="System.ComponentModel.TypeConverter" Version="4.3.0" />
|
||||
<PackageReference Include="xunit.extensibility.core" Version="2.4.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.6" />
|
||||
|
|
|
|||
|
|
@ -9,14 +9,11 @@ namespace Elsa.Testing.Shared.Helpers
|
|||
{
|
||||
public class AddExpressionToActivityState : Activity
|
||||
{
|
||||
private IExpressionEvaluator _expressionEvaluator;
|
||||
private AssertableActivityState _activityState;
|
||||
private readonly IExpressionEvaluator _expressionEvaluator;
|
||||
private readonly AssertableActivityState _activityState;
|
||||
|
||||
[ActivityInput]
|
||||
public string Expression { get; set; }
|
||||
|
||||
[ActivityInput]
|
||||
public string ExpressionSyntax { get; set; }
|
||||
[ActivityInput] public string Expression { get; set; } = default!;
|
||||
[ActivityInput] public string ExpressionSyntax { get; set; } = default!;
|
||||
|
||||
public AddExpressionToActivityState(IExpressionEvaluator evaluator, AssertableActivityState activityState)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue