SecTester.Bus 0.9.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SecTester.Bus --version 0.9.0
                    
NuGet\Install-Package SecTester.Bus -Version 0.9.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SecTester.Bus" Version="0.9.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SecTester.Bus" Version="0.9.0" />
                    
Directory.Packages.props
<PackageReference Include="SecTester.Bus" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SecTester.Bus --version 0.9.0
                    
#r "nuget: SecTester.Bus, 0.9.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SecTester.Bus@0.9.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SecTester.Bus&version=0.9.0
                    
Install as a Cake Addin
#tool nuget:?package=SecTester.Bus&version=0.9.0
                    
Install as a Cake Tool

SecTester.Bus

Maintainability Test Coverage Build Status Nuget Downloads

The package includes a simplified implementation of the EventBus, one based on RabbitMQ, to establish synchronous and asynchronous communication between services and agents.

Setup

$ dotnet add package SecTester.Bus

Usage

Overview

Executing RPC methods

The HttpCommandDispatcher is an alternative way to execute the commands over HTTP. To start, you should create an HttpCommandDispatcher instance by passing the following options to the constructor:

var collection = new ServiceCollection();
var provider = collection.BuildServiceProvider();
var httpFactory = collection.GetRequiredService<IHttpClientFactory>();
var config = collection.GetRequiredService<HttpCommandDispatcherConfig>();

var httpDispatcher = new HttpCommandDispatcher(
  httpFactory,
  config
);

The command dispatcher can be customized using the following options:

Option Description
BaseUrl Base URL for your application instance, e.g. https://app.neuralegion.com
Token API key to access the API. Find out how to obtain personal and organization API keys in the knowledgebase
Timeout Time to wait for a server to send response headers (and start the response body) before aborting the request. Default 10000 ms

Then you have to create an instance of HttpRequest instead of a custom command, specifying the Url and Method in addition to the Body that a command accepts by default:

HttpRequest<object> command = new(url: "/api/v1/repeaters",
  method: HttpMethods.Post,
  body: @"{""foo"":""bar""}");

Once it is done, you can perform a request using HttpComandDispatcher as follows:

var response = await httpDispatcher.execute(command);

Below you will find a list of parameters that can be used to configure a command:

Option Description
Url Absolute URL or path that will be used for the request. By default, /
Method HTTP method that is going to be used when making the request. By default, GET
Params Use to set query parameters.
Body Message that we want to transmit to the remote service.
ExpectReply Indicates whether to wait for a reply. By default true.
Ttl Period of time that command should be handled before being discarded. By default 10000 ms.
Type The name of a command. By default, it is the name of specific class.
CorrelationId Used to ensure atomicity while working with EventBus. By default, random UUID.
CreatedAt The exact date and time the command was created.

For more information, please see SecTester.Core.

License

Copyright © 2022 Bright Security.

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.41.4 479 6/8/2024
0.41.3 512 10/4/2023
0.41.2 452 10/4/2023
0.41.1 452 10/4/2023
0.41.0 459 10/4/2023
0.40.0 560 8/3/2023
0.39.1 558 8/1/2023
0.39.0 534 7/31/2023
0.38.0 557 7/28/2023
0.37.0 568 7/20/2023
0.36.0 581 6/5/2023
0.35.1 631 5/2/2023
0.35.0 721 4/11/2023
0.34.0 1,009 2/8/2023
0.33.7 1,206 12/20/2022
0.33.6 1,220 12/16/2022
0.33.5 1,223 12/16/2022
0.33.4 1,238 12/15/2022
0.33.3 1,192 12/14/2022
0.33.2 1,231 12/14/2022
0.33.1 1,220 12/14/2022
0.33.0 1,173 12/14/2022
0.32.8 1,200 12/13/2022
0.32.7 1,206 12/13/2022
0.32.6 1,230 12/13/2022
0.32.5 1,211 12/13/2022
0.32.4 1,216 12/13/2022
0.32.3 1,207 12/13/2022
0.32.2 1,212 12/13/2022
0.32.1 1,244 12/13/2022
0.32.0 1,218 12/13/2022
0.31.0 1,233 12/11/2022
0.30.1 1,017 12/10/2022
0.30.0 1,012 12/9/2022
0.29.2 863 12/9/2022
0.29.1 889 12/9/2022
0.29.0 850 12/8/2022
0.28.0 863 12/8/2022
0.27.0 797 12/8/2022
0.26.0 837 12/7/2022
0.25.0 824 12/7/2022
0.24.0 830 12/6/2022
0.23.0 863 12/5/2022
0.22.0 902 12/2/2022
0.21.0 903 12/1/2022
0.20.0 968 12/1/2022
0.19.0 950 11/28/2022
0.18.0 689 11/28/2022
0.17.0 706 11/28/2022
0.16.0 469 11/28/2022
0.15.0 497 11/21/2022
0.14.0 515 11/16/2022
0.13.0 489 11/16/2022
0.12.0 514 11/16/2022
0.11.0 526 11/14/2022
0.10.0 483 11/14/2022
0.9.0 504 11/14/2022