Skip to content

Commit

Permalink
v2.3.2024.1203
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Dec 3, 2024
1 parent 57179f4 commit 44a27df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions NewLife.IoT/Clients/IServiceHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static async Task<ServiceReplyModel> ExecuteService(this IServiceHandler
var rs = new ServiceReplyModel { Id = model.Id, Status = ServiceStatus.已完成 };
try
{
var result = await OnService(client, model);
var result = await OnService(client, model).ConfigureAwait(false);
if (result is ServiceReplyModel reply)
{
reply.Id = model.Id;
Expand Down Expand Up @@ -140,8 +140,8 @@ public static async Task<ServiceReplyModel> ExecuteService(this IServiceHandler
if (d is Func<String?, String?> func) return func(model.InputData);
if (d is Func<ServiceModel, ServiceReplyModel> func2) return func2(model);

if (d is Func<String?, Task<String?>> func3) return await func3(model.InputData);
if (d is Func<ServiceModel, Task<ServiceReplyModel>> func4) return await func4(model);
if (d is Func<String?, Task<String?>> func3) return await func3(model.InputData).ConfigureAwait(false);
if (d is Func<ServiceModel, Task<ServiceReplyModel>> func4) return await func4(model).ConfigureAwait(false);

return null;
}
Expand Down
4 changes: 3 additions & 1 deletion NewLife.IoT/NewLife.IoT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
<LangVersion>latest</LangVersion>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\Doc\newlife.snk</AssemblyOriginatorKeyFile>
<AnalysisLevel>latest</AnalysisLevel>
<WarningsAsErrors>CA2007</WarningsAsErrors>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -50,7 +52,7 @@
</PackageReference>
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'!='net40'">
<PackageReference Include="NewLife.Core" Version="11.0.2024.1115" />
<PackageReference Include="NewLife.Core" Version="11.0.2024.1201" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net40'">
<PackageReference Include="NewLife.Core" Version="10.10.2024.801-net40" />
Expand Down

0 comments on commit 44a27df

Please sign in to comment.