Rebus.MongoDb 9.0.0

dotnet add package Rebus.MongoDb --version 9.0.0
                    
NuGet\Install-Package Rebus.MongoDb -Version 9.0.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="Rebus.MongoDb" Version="9.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rebus.MongoDb" Version="9.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Rebus.MongoDb" />
                    
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 Rebus.MongoDb --version 9.0.0
                    
#r "nuget: Rebus.MongoDb, 9.0.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 Rebus.MongoDb@9.0.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=Rebus.MongoDb&version=9.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Rebus.MongoDb&version=9.0.0
                    
Install as a Cake Tool

Rebus.MongoDb

install from nuget

Provides MongoDB persistence implementations for Rebus for

  • sagas
  • subscriptions
  • timeouts

Provides transport MongoDb implementations for Rebus

Saga Data

You must ensure to map GuidRepresentation for classes inheriting from ISagaData as this is required for any Guid field in MongoDB.Driver from 3.x and beyond.

Remember, if you have existing saga data from prior to MongoDB.Driver 3.x, this will use GuidRepresentation.CSharpLegacy so you must take care to ensure you map it appropriately.

Inheriting from ISagaData

If your saga data class inherits from the ISagaData interface, you can either use attributes:

public class MySagaData : ISagaData
{
    [BsonGuidRepresentation(GuidRepresentation.Standard)]
    public Guid Id { get; set; } 
    public int Revision { get; set; }
}

Or you can create a BsonClassMap:

BsonClassMap.RegisterClassMap<MySagaData>(map =>
{
    map.MapIdMember(obj => obj.Id).SetSerializer(new GuidSerializer(GuidRepresentation.Standard));
    map.MapMember(obj => obj.Revision);
});

Inheriting from SagaData

If you inherit from SagaData, you can just create a BsonClassMap which will be applied to all classes inheriting from the base class:

BsonClassMap.RegisterClassMap<SagaData>(map =>
{
    map.MapIdMember(obj => obj.Id).SetSerializer(new GuidSerializer(GuidRepresentation.Standard));
    map.MapMember(obj => obj.Revision);
});

Global serializer

A third option, if you prefer to configure a representation globally is:

BsonSerializer.RegisterSerializer(new GuidSerializer(GuidRepresentation.Standard));

Remember, this will apply it globally for any code using MongoDB.Driver, including your own. So this is only an option if all your code uses same representation across all collections.

Unit Tests

To run unit test please provide a mongo instance to run test and set the connection string ino REBUS_MONGODB environment variable.

Local nuget pack

To manually create a nuget package specifying manually the version you can use this commandline.

dotnet pack Rebus.MongoDb\Rebus.MongoDb.csproj -o c:\target_directory -c release /p:PackageVersion=6.0.1011 /p:AssemblyVersion=6.0.0 /p:FileVersion=6.0.0 /p:InformationalVersion=6.0.0-__SHA_OF_COMMIT__

//then you need to push
dotnet nuget push .\Rebus.MongoDb.6.0.1011.nupkg -s https://pkgs.dev.azure.com/xxxxx/_packaging/__packageName__/nuget/v3/index.json --api-key az

alternate text is missing from this package README image


Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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
9.0.0 59,143 12/18/2024
8.1.0 35,523 8/21/2024
8.0.0 72,550 11/15/2023
8.0.0-alpha04 2,253 8/24/2023
8.0.0-alpha03 326 6/12/2023
8.0.0-alpha02 290 6/6/2023
8.0.0-alpha01 334 3/29/2023
7.0.0-b3 56,669 8/1/2022
7.0.0-b2 380 8/1/2022
7.0.0-b1 3,363 9/22/2021
6.0.5 254,389 4/22/2020
6.0.4 8,410 3/24/2020
6.0.0 8,203 2/5/2020
6.0.0-b3 754 1/16/2020
6.0.0-b2 922 9/8/2019
5.1.0 1,735 1/16/2020
5.1.0-b1 749 1/15/2020
5.0.0 45,199 10/8/2018
5.0.0-b02 1,926 6/22/2018
5.0.0-b01 1,659 6/22/2018
4.0.0 6,280 8/15/2017
4.0.0-b06 1,457 8/13/2017
4.0.0-b05 1,531 6/13/2017
4.0.0-b04 1,445 5/18/2017
4.0.0-b03 1,482 5/17/2017
4.0.0-b01 1,531 3/21/2017
3.0.0 3,106 1/5/2017
2.0.0 2,378 9/20/2016
2.0.0-b01 1,499 9/9/2016
2.0.0-a1 1,479 9/1/2016
0.99.74 1,821 8/29/2016
0.99.73 1,848 8/12/2016
0.99.72 1,866 8/4/2016
0.99.71 2,128 8/3/2016
0.99.70 2,012 7/29/2016
0.99.68 1,816 7/18/2016
0.99.67 1,933 7/1/2016
0.99.66 1,898 6/28/2016
0.99.65 1,920 6/23/2016
0.99.64 1,862 6/22/2016
0.99.63 1,853 6/21/2016
0.99.62 1,883 6/17/2016
0.99.61 1,818 6/17/2016
0.99.60 1,976 6/15/2016
0.99.59 1,831 6/3/2016
0.99.58 1,901 5/24/2016
0.99.57 1,901 5/22/2016
0.99.56 1,876 5/22/2016
0.99.55 1,861 5/16/2016
0.99.54 1,831 5/12/2016
0.99.53 1,784 5/12/2016
0.99.52 1,852 5/11/2016
0.99.51 1,884 5/9/2016
0.99.50 1,871 4/13/2016
0.99.48 1,833 4/6/2016
0.99.47 1,811 3/31/2016
0.99.46 1,774 3/30/2016
0.99.45 1,768 3/29/2016
0.99.44 1,794 3/26/2016
0.99.43 1,807 3/26/2016
0.99.42 1,890 3/22/2016
0.99.41 1,906 3/17/2016
0.99.40 1,867 3/15/2016
0.99.39 1,869 3/14/2016
0.99.38 1,863 3/9/2016
0.99.37 1,778 3/9/2016
0.99.36 1,835 3/3/2016
0.99.35 1,935 2/22/2016
0.99.34 1,892 2/19/2016
0.99.33 1,916 2/12/2016
0.99.32 1,889 2/10/2016
0.99.31 1,884 2/8/2016
0.99.30 1,799 2/5/2016
0.99.29 1,878 2/2/2016
0.99.27 1,852 1/28/2016
0.99.26 1,851 1/27/2016
0.99.25 1,837 1/22/2016
0.99.24 1,852 1/18/2016
0.99.23 1,861 12/18/2015
0.99.22 1,874 12/18/2015
0.99.21 1,827 12/11/2015
0.99.20 1,870 12/10/2015
0.99.19 1,884 12/8/2015
0.99.18 1,997 12/7/2015
0.99.17 1,833 12/7/2015
0.99.16 2,199 11/30/2015
0.99.14 1,973 11/24/2015
0.99.13 1,941 11/23/2015
0.99.12 1,998 11/17/2015
0.99.11 1,922 11/17/2015
0.99.10 1,888 11/11/2015
0.99.9 1,892 11/5/2015
0.99.8 1,901 11/5/2015
0.99.7 1,939 10/29/2015
0.99.5 1,897 10/27/2015
0.99.4 1,880 10/27/2015
0.99.2 1,918 10/12/2015
0.99.1 2,262 10/8/2015
0.99.0 1,970 10/7/2015
0.98.12 1,951 9/17/2015
0.98.11 1,958 9/17/2015
0.98.10 1,887 9/16/2015
0.98.9 1,783 9/14/2015
0.98.8 1,933 9/13/2015
0.98.7 1,956 9/9/2015
0.98.6 1,906 9/7/2015
0.98.5 1,910 9/3/2015
0.98.4 1,892 9/3/2015
0.98.3 1,936 9/1/2015
0.98.2 1,953 8/27/2015
0.98.1 1,947 8/27/2015
0.98.0 1,911 8/26/2015
0.97.0 1,761 8/25/2015
0.96.0 1,932 8/24/2015
0.95.0 1,765 8/20/2015
0.94.0 1,941 8/19/2015
0.93.0 1,771 8/19/2015
0.92.4 1,786 8/17/2015
0.92.3 2,401 8/13/2015
0.92.2 2,522 8/12/2015
0.92.1 2,460 8/12/2015
0.92.0 2,230 8/11/2015
0.91.0 1,950 8/11/2015
0.90.9 1,889 8/10/2015
0.90.8 2,197 8/9/2015
0.90.7 2,126 8/5/2015
0.90.6 2,221 8/4/2015
0.90.5 2,234 8/4/2015
0.90.4 1,982 8/2/2015
0.90.3 2,099 8/2/2015
0.90.2 2,094 7/31/2015
0.90.1 1,914 7/29/2015
0.90.0 2,061 7/29/2015
0.84.0 2,267 5/15/2015
0.83.0 2,064 4/20/2015
0.82.1 2,017 4/16/2015
0.82.0 2,038 3/19/2015
0.81.0 1,897 3/12/2015
0.80.1 1,933 3/5/2015
0.80.0 2,299 2/19/2015
0.79.0 2,108 2/6/2015
0.78.2 1,893 2/6/2015
0.78.1 1,953 2/5/2015
0.78.0 1,987 1/29/2015
0.77.1 1,812 1/23/2015
0.77.0 1,965 1/15/2015
0.76.0 1,971 1/15/2015
0.75.2 2,333 1/3/2015
0.75.1 2,360 12/21/2014
0.75.0 2,114 12/2/2014
0.74.1 2,119 12/2/2014
0.74.0 2,123 11/30/2014
0.73.0 2,476 11/6/2014
0.72.0 2,256 11/5/2014
0.71.4 1,986 10/29/2014
0.71.3 1,865 10/20/2014
0.71.2 1,867 9/30/2014
0.71.1 2,992 9/19/2014
0.71.0 2,387 8/7/2014
0.70.3 1,869 8/4/2014
0.70.2 1,835 7/31/2014
0.70.1 1,855 7/17/2014
0.69.0 1,882 6/17/2014
0.68.0 1,865 6/5/2014
0.67.0 1,836 5/20/2014
0.66.0 1,876 5/9/2014
0.65.0 1,821 4/27/2014
0.64.1 1,887 4/25/2014
0.64.0 2,015 4/20/2014
0.63.1 2,047 4/19/2014
0.63.0 1,866 3/24/2014
0.62.0 1,870 3/12/2014
0.61.1 1,817 3/5/2014
0.61.0 1,832 3/4/2014
0.60.1 1,804 3/3/2014
0.60.0 1,845 3/3/2014
0.59.0 1,921 2/26/2014
0.58.2 1,908 2/24/2014
0.58.1 1,932 2/24/2014
0.58.0 1,993 2/24/2014
0.57.0 1,996 2/18/2014
0.56.1 1,872 2/4/2014
0.56.0 1,960 1/24/2014
0.55.1 1,967 1/20/2014
0.55.0 1,938 1/20/2014
0.54.8 1,909 1/20/2014
0.54.7 1,914 1/20/2014
0.54.6 1,829 1/20/2014
0.54.5 1,904 1/20/2014
0.54.4 1,945 1/11/2014
0.54.3 1,871 1/8/2014
0.54.1 1,910 12/16/2013
0.54.0 1,901 12/10/2013
0.53.1 1,962 12/9/2013
0.53.0 1,938 12/5/2013
0.52.0 1,863 12/4/2013
0.51.1 1,966 12/3/2013
0.51.0 1,943 12/3/2013
0.50.1 1,970 11/15/2013
0.50.0 1,917 11/15/2013
0.49.0 1,908 11/15/2013
0.48.0 1,920 11/12/2013
0.47.0 1,893 11/6/2013
0.46.0 1,988 10/29/2013
0.45.0 1,972 10/21/2013
0.44.5 1,965 10/11/2013
0.44.4 1,905 10/7/2013
0.44.3 1,938 10/4/2013
0.44.2 1,935 10/4/2013
0.44.1 1,929 10/2/2013
0.44.0 1,924 10/2/2013
0.43.1 1,984 9/24/2013
0.43.0 2,064 9/17/2013
0.42.0 1,902 9/17/2013
0.41.0 1,924 9/10/2013
0.40.1 1,910 9/9/2013
0.40.0 1,890 9/2/2013
0.39.0 1,883 8/29/2013
0.38.1 2,046 8/28/2013
0.38.0 1,902 8/28/2013
0.37.0 1,881 8/26/2013
0.36.1 1,854 8/25/2013
0.36.0 1,857 8/25/2013
0.35.6 1,903 8/20/2013
0.35.5 1,886 8/20/2013
0.35.4 1,908 8/19/2013
0.35.3 1,867 8/17/2013
0.35.2 1,895 8/15/2013
0.35.1 1,928 8/14/2013
0.35.0 1,940 8/6/2013
0.34.7 1,922 8/5/2013
0.34.6 1,962 8/5/2013
0.34.5 1,944 8/2/2013
0.34.3 1,888 7/29/2013
0.34.2 1,994 7/29/2013
0.34.1 2,087 7/27/2013
0.34.0 2,192 7/4/2013
0.33.0 1,945 6/14/2013
0.32.5 2,022 6/2/2013
0.32.4 1,939 5/28/2013
0.32.3 1,937 5/23/2013
0.32.1 1,901 5/15/2013
0.32.0 1,955 4/23/2013
0.31.1 2,035 4/2/2013
0.31.0 1,897 4/2/2013
0.30.7 1,960 3/25/2013
0.30.4 1,937 3/7/2013
0.30.3 1,939 3/7/2013
0.30.2 1,957 3/7/2013
0.30.1 1,958 3/6/2013
0.30.0 1,910 3/5/2013
0.29.9 1,917 3/5/2013
0.29.8 1,986 3/5/2013
0.29.7 1,989 2/28/2013
0.29.6 1,984 2/20/2013
0.29.5 1,910 2/20/2013
0.29.4 1,848 2/8/2013
0.29.3 1,924 2/6/2013
0.29.1 1,879 2/5/2013
0.29.0-alpha 1,463 1/22/2013
0.28.4 1,921 1/21/2013
0.28.3 2,017 1/8/2013
0.28.2 1,904 1/8/2013
0.28.1 1,961 12/27/2012
0.28.0 1,931 12/27/2012
0.27.1 2,181 12/4/2012
0.27.0 2,345 12/4/2012
0.26.1 2,135 12/4/2012
0.26.0 2,244 11/20/2012
0.25.9 2,211 11/20/2012
0.25.8 2,191 11/19/2012
0.25.7 2,130 11/18/2012
0.25.5 2,164 11/15/2012
0.25.3 2,160 11/13/2012
0.25.2 2,142 11/13/2012
0.25.1 2,204 11/13/2012
0.25.0 2,133 11/7/2012
0.24.9 2,143 11/7/2012
0.24.8 2,113 11/7/2012
0.24.7 2,124 11/6/2012
0.24.6 2,070 11/1/2012
0.24.5 2,175 10/30/2012
0.24.4 2,122 10/30/2012
0.24.3 2,117 10/26/2012
0.24.2 2,048 10/26/2012
0.24.1 2,077 10/26/2012
0.24.0 2,108 10/25/2012
0.23.9 2,036 10/25/2012
0.23.8 2,077 10/25/2012
0.23.7 2,142 10/25/2012
0.23.6 2,084 10/24/2012
0.23.1 2,039 10/12/2012
0.23.0 2,025 10/10/2012
0.22.8 2,087 10/10/2012
0.22.7 2,072 10/9/2012
0.22.6 2,081 10/9/2012
0.22.5 2,116 10/3/2012
0.22.4 2,151 10/2/2012
0.22.3 2,102 10/2/2012
0.22.2 2,065 9/30/2012
0.22.1 2,045 9/26/2012
0.22.0 2,035 9/26/2012
0.21.7 2,019 9/25/2012
0.21.6 1,997 9/25/2012
0.21.5 2,023 9/11/2012
0.21.4 2,007 9/10/2012
0.21.3 2,013 9/10/2012
0.21.2 2,003 9/10/2012
0.21.1 2,050 9/10/2012
0.21.0 2,133 9/7/2012
0.20.9 1,987 9/7/2012
0.20.8 2,078 9/6/2012
0.20.7 2,061 9/6/2012
0.20.6 1,957 9/6/2012
0.20.3 1,978 9/4/2012
0.20.2 1,980 9/4/2012
0.19.7 2,046 8/29/2012
0.19.6 1,987 8/28/2012
0.19.5 2,014 8/28/2012
0.19.4 2,041 8/28/2012
0.19.3 2,042 8/28/2012
0.19.2 2,062 8/28/2012
0.19.1 1,999 8/26/2012
0.18.6 2,066 8/23/2012
0.16.0 2,186 8/20/2012
0.15.9-alpha 1,521 8/14/2012
0.15.8-alpha 1,530 8/8/2012
0.15.7-alpha 1,534 8/8/2012
0.15.6-alpha 1,500 8/8/2012
0.15.4-alpha 1,636 8/7/2012
0.15.3-alpha 1,510 8/7/2012
0.15.2-alpha 1,530 8/7/2012
0.15.1-alpha 1,495 8/2/2012
0.15.0-alpha 1,535 8/1/2012
0.14.0-alpha 1,463 7/30/2012
0.13.0-alpha 1,543 7/14/2012
0.12.9-alpha 1,538 6/18/2012
0.12.8-alpha 1,514 6/18/2012
0.12.7-alpha 1,536 6/13/2012
0.12.6-alpha 1,577 6/8/2012
0.12.5-alpha 1,516 6/5/2012
0.12.4-alpha 1,561 6/5/2012
0.12.3-alpha 1,502 6/1/2012
0.12.2-alpha 1,540 5/31/2012
0.12.1-alpha 1,573 5/30/2012
0.11.10-alpha 1,539 5/30/2012
0.11.9-alpha 1,528 5/30/2012
0.11.8-alpha 1,601 5/30/2012
0.11.7-alpha 1,505 5/30/2012
0.11.6-alpha 1,489 5/29/2012
0.11.5-alpha 1,576 5/22/2012
0.11.4-alpha 1,571 5/22/2012
0.11.3-alpha 1,588 5/15/2012
0.11.2-alpha 1,516 5/8/2012
0.11.1-alpha 1,514 5/8/2012
0.11.0-alpha 1,530 5/8/2012
0.10.9-alpha 1,580 4/10/2012
0.10.8-alpha 1,561 3/21/2012
0.10.7-alpha 1,614 3/20/2012
0.10.6-alpha 1,509 3/17/2012
0.10.5-alpha 1,569 3/16/2012
0.10.4-alpha 1,575 3/16/2012
0.10.3-alpha 1,577 3/15/2012
0.10.1-alpha 1,546 3/15/2012
0.9.1-alpha 1,588 2/26/2012