Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
<PackageVersion Include="Bogus" Version="35.6.5" />
<PackageVersion Include="coverlet.collector" Version="10.1.0" />
Expand All @@ -25,8 +24,8 @@
<PackageVersion Include="NUnit" Version="5.0.0" />
<PackageVersion Include="NUnit.Analyzers" Version="4.15.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="6.3.0" />
<PackageVersion Include="Spectre.Console.Cli" Version="0.56.1" />
<PackageVersion Include="Spectre.Console.Cli.Extensions.DependencyInjection" Version="0.29.0" />
<PackageVersion Include="Spectre.Console.Cli" Version="0.57.2" />
<PackageVersion Include="Spectre.Console.Cli.Extensions.DependencyInjection" Version="0.30.0" />
<PackageVersion Include="Spectre.Console.Cli.Testing" Version="1.0.0-alpha.0.16" />
<PackageVersion Include="Testcontainers.Azurite" Version="4.15.0" />
<PackageVersion Include="Testcontainers.LocalStack" Version="4.15.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/BuslyCLI.Console/Commands/Demo/StartCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace BuslyCLI.Commands.Demo;
public class StartDemoCommand(IAnsiConsole console, IRawEndpointFactory rawEndpointFactory, INServiceBusConfiguration nServiceBusConfiguration)
: AsyncCommand<CurrentTransportSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, CurrentTransportSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, CurrentTransportSettings settings, CancellationToken cancellationToken)
{
console.WriteLine($"Starting demo endpoint named {Constants.DemoDefaultOriginatingEndpoint} for quick start guide...");
var config = await nServiceBusConfiguration.GetTransportValidatedConfigurationAsync(settings.Config.Path);
Expand Down
2 changes: 1 addition & 1 deletion src/BuslyCLI.Console/Commands/NsbCommand/SendCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace BuslyCLI.Commands.NsbCommand;

public class SendCommand(IAnsiConsole console, IRawEndpointFactory rawEndpointFactory, INServiceBusConfiguration nServiceBusConfiguration) : AsyncCommand<SendCommandSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, SendCommandSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, SendCommandSettings settings, CancellationToken cancellationToken)
{
var config = await nServiceBusConfiguration.GetTransportValidatedConfigurationAsync(settings.Config.Path);

Expand Down
2 changes: 1 addition & 1 deletion src/BuslyCLI.Console/Commands/NsbEvent/PublishCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace BuslyCLI.Commands.NsbEvent;

public class PublishCommand(IAnsiConsole console, IRawEndpointFactory rawEndpointFactory, INServiceBusConfiguration nServiceBusConfiguration) : AsyncCommand<PublishCommandSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, PublishCommandSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, PublishCommandSettings settings, CancellationToken cancellationToken)
{
var config = await nServiceBusConfiguration.GetTransportValidatedConfigurationAsync(settings.Config.Path);

Expand Down
2 changes: 1 addition & 1 deletion src/BuslyCLI.Console/Commands/NsbTimeout/SendTimeout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SendTimeout(IAnsiConsole console, IRawEndpointFactory rawEndpointFa
typeof(AzureStorageQueuesTransportConfig)
];

protected override async Task<int> ExecuteAsync(CommandContext context, SendTimeoutCommandSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, SendTimeoutCommandSettings settings, CancellationToken cancellationToken)
{
var config = await nServiceBusConfiguration.GetTransportValidatedConfigurationAsync(settings.Config.Path);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace BuslyCLI.Commands.ServiceControl.CustomCheck;
public class ListCustomChecksCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration, ServiceControlClient serviceControlClient)
: AsyncCommand<ListCustomChecksSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, ListCustomChecksSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, ListCustomChecksSettings settings, CancellationToken cancellationToken)
{
var config = await nservicebusConfiguration.GetServiceControlValidatedConfigurationAsync(settings.Config.Path);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace BuslyCLI.Commands.ServiceControl.Endpoint;
public class DeleteEndpointCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration, ServiceControlClient serviceControlClient)
: AsyncCommand<DeleteEndpointSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, DeleteEndpointSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, DeleteEndpointSettings settings, CancellationToken cancellationToken)
{
var config = await nservicebusConfiguration.GetServiceControlValidatedConfigurationAsync(settings.Config.Path);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ListEndpointsCommand(
ServiceControlClient serviceControlClient)
: AsyncCommand<ListEndpointsSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, ListEndpointsSettings settings,
public override async Task<int> ExecuteAsync(CommandContext context, ListEndpointsSettings settings,
CancellationToken cancellationToken)
{
var config = await nservicebusConfiguration.GetServiceControlValidatedConfigurationAsync(settings.Config.Path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace BuslyCLI.Commands.ServiceControl.Event;
public class ListEventsCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration, ServiceControlClient serviceControlClient)
: AsyncCommand<ListEventsSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, ListEventsSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, ListEventsSettings settings, CancellationToken cancellationToken)
{
var config = await nservicebusConfiguration.GetServiceControlValidatedConfigurationAsync(settings.Config.Path);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BuslyCLI.Commands.ServiceControl.Instance;
public class CurrentServiceControlInstanceCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration)
: AsyncCommand<CurrentServiceControlInstanceSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, CurrentServiceControlInstanceSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, CurrentServiceControlInstanceSettings settings, CancellationToken cancellationToken)
{
var config = await nservicebusConfiguration.GetUnValidatedConfigurationAsync(settings.Config.Path);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BuslyCLI.Commands.ServiceControl.Instance;
public class DeleteServiceControlInstanceCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration)
: AsyncCommand<DeleteServiceControlInstanceSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, DeleteServiceControlInstanceSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, DeleteServiceControlInstanceSettings settings, CancellationToken cancellationToken)
{
var config = await nservicebusConfiguration.GetUnValidatedConfigurationAsync(settings.Config.Path);
var targetInstance = settings.InstanceName.ToLower();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BuslyCLI.Commands.ServiceControl.Instance;
public class ListServiceControlInstancesCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration)
: AsyncCommand<ListServiceControlInstancesSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, ListServiceControlInstancesSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, ListServiceControlInstancesSettings settings, CancellationToken cancellationToken)
{
var grid = new Grid();
// Add columns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BuslyCLI.Commands.ServiceControl.Instance;
public class SetServiceControlInstanceCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration)
: AsyncCommand<SetServiceControlInstanceSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, SetServiceControlInstanceSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, SetServiceControlInstanceSettings settings, CancellationToken cancellationToken)
{
var config = await nservicebusConfiguration.GetUnValidatedConfigurationAsync(settings.Config.Path);
var targetInstance = settings.InstanceName.ToLower();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class ShowLicenseCommand(
ServiceControlClient serviceControlClient)
: AsyncCommand<ListEndpointsSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, ListEndpointsSettings settings,
public override async Task<int> ExecuteAsync(CommandContext context, ListEndpointsSettings settings,
CancellationToken cancellationToken)
{
var config = await nservicebusConfiguration.GetServiceControlValidatedConfigurationAsync(settings.Config.Path);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace BuslyCLI.Commands.ServiceControl.Message;
public class SearchMessagesCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration, ServiceControlClient serviceControlClient)
: AsyncCommand<SearchMessagesSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, SearchMessagesSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, SearchMessagesSettings settings, CancellationToken cancellationToken)
{
var config = await nservicebusConfiguration.GetServiceControlValidatedConfigurationAsync(settings.Config.Path);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BuslyCLI.Commands.Transport;
public class CurrentTransportCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration)
: AsyncCommand<CurrentTransportSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, CurrentTransportSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, CurrentTransportSettings settings, CancellationToken cancellationToken)
{
var nsbConfiguration = await nservicebusConfiguration.GetUnValidatedConfigurationAsync(settings.Config.Path);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BuslyCLI.Commands.Transport;
public class DeleteTransportCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration)
: AsyncCommand<DeleteTransportSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, DeleteTransportSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, DeleteTransportSettings settings, CancellationToken cancellationToken)
{
var nsbConfiguration = await nservicebusConfiguration.GetTransportValidatedConfigurationAsync(settings.Config.Path);
var targetTransport = settings.TransportName.ToLower();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace BuslyCLI.Commands.Transport;
public class ListTransportsCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration)
: AsyncCommand<ListTransportsSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, ListTransportsSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, ListTransportsSettings settings, CancellationToken cancellationToken)
{
var grid = new Grid();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BuslyCLI.Commands.Transport;
public class SetTransportCommand(IAnsiConsole console, INServiceBusConfiguration nservicebusConfiguration)
: AsyncCommand<SetTransportSettings>
{
protected override async Task<int> ExecuteAsync(CommandContext context, SetTransportSettings settings, CancellationToken cancellationToken)
public override async Task<int> ExecuteAsync(CommandContext context, SetTransportSettings settings, CancellationToken cancellationToken)
{
var nsbConfiguration = await nservicebusConfiguration.GetTransportValidatedConfigurationAsync(settings.Config.Path);
var targetTransport = settings.TransportName.ToLower();
Expand Down
Loading