Skip to content

Commit f8853ed

Browse files
committed
Updating CLIFx and AspNetCore and target framework
1 parent c5035d8 commit f8853ed

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

src/netstandard/Samples/WAMP2/WampSharp.Samples.AspNetCore.Router/RunRouterCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Threading.Tasks;
44
using CliFx;
55
using CliFx.Attributes;
6-
using CliFx.Services;
6+
using CliFx.Infrastructure;
77
using Microsoft.AspNetCore;
88
using Microsoft.AspNetCore.Builder;
99
using Microsoft.AspNetCore.Hosting;
@@ -21,7 +21,7 @@ public class RunRouterCommand : ICommand
2121
[CommandOption("port", 'p', Description = "The port to listen on for requests. Default value is 8080.", IsRequired = false)]
2222
public int Port { get; set; } = 8080;
2323

24-
public async Task ExecuteAsync(IConsole console)
24+
public async ValueTask ExecuteAsync(IConsole console)
2525
{
2626
WampHost wampHost = new WampHost();
2727

src/netstandard/Samples/WAMP2/WampSharp.Samples.AspNetCore.Router/WampSharp.Samples.AspNetCore.Router.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="CliFx" Version="0.0.5" />
10-
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
11-
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
9+
<PackageReference Include="CliFx" Version="2.3.6" />
10+
<PackageReference Include="Microsoft.AspNetCore" Version="2.3.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.3.0" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

src/netstandard/Samples/WAMP2/WampSharp.Samples.Callee/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Threading.Tasks;
33
using CliFx;
4+
using CliFx.Attributes;
45
using WampSharp.V2;
56
using WampSharp.Samples.Common;
67

@@ -17,6 +18,7 @@ static async Task Main(string[] args)
1718
}
1819
}
1920

21+
[Command]
2022
public class CalleeCommand<TService> : SampleCommand
2123
where TService : new()
2224
{

src/netstandard/Samples/WAMP2/WampSharp.Samples.Common/SampleCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Threading.Tasks;
55
using CliFx;
66
using CliFx.Attributes;
7-
using CliFx.Services;
7+
using CliFx.Infrastructure;
88
using WampSharp.V2;
99
using WampSharp.V2.Client;
1010
using WampSharp.V2.Fluent;
@@ -46,7 +46,7 @@ public string Address
4646
set => mAddress = value;
4747
}
4848

49-
public async Task ExecuteAsync(IConsole console)
49+
public async ValueTask ExecuteAsync(IConsole console)
5050
{
5151
IWampChannel channel = CreateChannel();
5252

src/netstandard/Samples/WAMP2/WampSharp.Samples.Common/WampSharp.Samples.Common.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="CliFx" Version="0.0.5" />
9+
<PackageReference Include="CliFx" Version="2.3.6" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

src/netstandard/Samples/WAMP2/WampSharp.Samples.Subscriber/Reflection/SubscriberCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
using System;
22
using System.Threading.Tasks;
3+
using CliFx.Attributes;
34
using WampSharp.Samples.Common;
45
using WampSharp.V2;
56

67
namespace WampSharp.Samples.Subscriber.Reflection
78
{
9+
[Command]
810
public class SubscriberCommand<TService> : SampleCommand
911
where TService : new()
1012
{

0 commit comments

Comments
 (0)