Commando 1.0.0.5
See the version list below for details.
dotnet add package Commando --version 1.0.0.5
NuGet\Install-Package Commando -Version 1.0.0.5
<PackageReference Include="Commando" Version="1.0.0.5" />
paket add Commando --version 1.0.0.5
#r "nuget: Commando, 1.0.0.5"
// Install Commando as a Cake Addin
#addin nuget:?package=Commando&version=1.0.0.5
// Install Commando as a Cake Tool
#tool nuget:?package=Commando&version=1.0.0.5
Allows commands to have services or dependencies provided by the CommandProcessor.
For example a database command might look like this
public class GetUserCommand : DbCommandBase<Use>
{
//Constructor only takes the arguments necessary to run the command
public GetUserCommand(int userId)
{
this.UserId = userId;
}
public int UserId {get;set;}
public override User Execute(IDbConnection db)
{
return db.Query<User>("Select * from User where Id = @UserId", new { UserId}, this.Transaction)
.FirstOrDefault();
}
}
The Command executor will then provide the neccessary DbProviderFactory to the command before execution.
(nb: The DbCommandBase is creating the actual connection)
Commands can all execute other commands, e.g.
this.Execute(new SendNewUserEmailCommand("Johnny", "John@doe.com"));
It is then the responsiblity of the Command Executor to provide the necessary email sending service.
More info can be found here.
https://github.com/markkemper1/Commando
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0.21 | 14,001 | 11/14/2012 |
2.0.0.20 | 1,934 | 11/13/2012 |
2.0.0.19 | 1,579 | 9/2/2012 |
2.0.0.18 | 1,388 | 8/20/2012 |
2.0.0.17 | 1,389 | 8/20/2012 |
2.0.0.16 | 1,375 | 8/20/2012 |
2.0.0.15 | 1,382 | 8/19/2012 |
2.0.0.14 | 1,374 | 8/19/2012 |
2.0.0.13 | 1,430 | 8/19/2012 |
2.0.0.12 | 1,387 | 8/16/2012 |
2.0.0.11 | 1,392 | 8/16/2012 |
1.0.0.9 | 1,445 | 8/12/2012 |
1.0.0.8 | 1,394 | 7/30/2012 |
1.0.0.7 | 1,425 | 7/30/2012 |
1.0.0.6 | 1,392 | 7/30/2012 |
1.0.0.5 | 1,388 | 7/30/2012 |
1.0.0.3 | 1,470 | 7/7/2012 |