Resolve warnings

This commit is contained in:
Sipke Schoorstra 2021-06-19 12:01:23 +02:00
parent 67c230a2af
commit 543f5b78b5
5 changed files with 15 additions and 18 deletions

View file

@ -4,7 +4,7 @@
<Import Project="..\..\..\configureawait.props" />
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFramework>netstandard2.1</TargetFramework>
<Description>
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 following Console activities:

View file

@ -141,7 +141,7 @@ namespace Elsa.Activities.Telnyx.Activities
return input.CallControlId;
var inboundCallActivityId = context.WorkflowExecutionContext.GetInboundConnections(Id).Where(x => x.Source.Activity.Type == nameof(Dial)).Select(x => x.Source.Activity.Id).FirstOrDefault();
var inboundCallActivityResponse = inboundCallActivityId != null ? await context.WorkflowExecutionContext.GetActivityPropertyAsync<Dial, DialResponse>(inboundCallActivityId, x => x.DialResponse) : default;
var inboundCallActivityResponse = inboundCallActivityId != null ? await context.WorkflowExecutionContext.GetActivityPropertyAsync<Dial, DialResponse>(inboundCallActivityId, x => x.DialResponse!) : default;
return inboundCallActivityResponse != null ? inboundCallActivityResponse.CallControlId : null;
}
}

View file

@ -2,7 +2,7 @@
<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Description>
@ -15,22 +15,19 @@
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\core\Elsa.Core\Elsa.Core.csproj" />
<ProjectReference Include="..\..\scripting\Elsa.Scripting.JavaScript\Elsa.Scripting.JavaScript.csproj" />
<ProjectReference Include="..\..\scripting\Elsa.Scripting.Liquid\Elsa.Scripting.Liquid.csproj" />
<ProjectReference Include="..\Elsa.Activities.Temporal.Common\Elsa.Activities.Temporal.Common.csproj" />
<ProjectReference Include="..\..\core\Elsa.Core\Elsa.Core.csproj" />
<ProjectReference Include="..\..\scripting\Elsa.Scripting.JavaScript\Elsa.Scripting.JavaScript.csproj" />
<ProjectReference Include="..\..\scripting\Elsa.Scripting.Liquid\Elsa.Scripting.Liquid.csproj" />
<ProjectReference Include="..\Elsa.Activities.Temporal.Common\Elsa.Activities.Temporal.Common.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Refit" Version="6.0.38" />
<PackageReference Include="Refit.HttpClientFactory" Version="6.0.38" />
<PackageReference Include="Refit.Newtonsoft.Json" Version="6.0.38" />
</ItemGroup>
<ItemGroup>
<Folder Include="Providers" />
<PackageReference Include="Refit" Version="6.0.38" />
<PackageReference Include="Refit.HttpClientFactory" Version="6.0.38" />
<PackageReference Include="Refit.Newtonsoft.Json" Version="6.0.38" />
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />
</ItemGroup>
</Project>

View file

@ -10,7 +10,7 @@ namespace Elsa.Activities.Telnyx.Models
{
var bytes = Convert.FromBase64String(base64);
var json = Encoding.UTF8.GetString(bytes);
return JsonConvert.DeserializeObject<ClientStatePayload>(json);
return JsonConvert.DeserializeObject<ClientStatePayload>(json)!;
}
public string ToBase64()

View file

@ -46,7 +46,7 @@ namespace Elsa.Services.Models
public bool Resuming { get; }
public bool IsFirstPass => WorkflowExecutionContext.IsFirstPass;
public string? CorrelationId
public string CorrelationId
{
get => WorkflowExecutionContext.CorrelationId;
set => WorkflowExecutionContext.CorrelationId = value;