EventDriven.DependencyInjection.URF.Mongo 1.1.0-beta1

.NET 6.0
This is a prerelease version of EventDriven.DependencyInjection.URF.Mongo.
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package EventDriven.DependencyInjection.URF.Mongo -Version 1.1.0-beta1
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.
dotnet add package EventDriven.DependencyInjection.URF.Mongo --version 1.1.0-beta1
<PackageReference Include="EventDriven.DependencyInjection.URF.Mongo" Version="1.1.0-beta1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EventDriven.DependencyInjection.URF.Mongo --version 1.1.0-beta1
#r "nuget: EventDriven.DependencyInjection.URF.Mongo, 1.1.0-beta1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EventDriven.DependencyInjection.URF.Mongo as a Cake Addin
#addin nuget:?package=EventDriven.DependencyInjection.URF.Mongo&version=1.1.0-beta1&prerelease

// Install EventDriven.DependencyInjection.URF.Mongo as a Cake Tool
#tool nuget:?package=EventDriven.DependencyInjection.URF.Mongo&version=1.1.0-beta1&prerelease


Helper methods for configuring services for MongoDB with dependency injection.


  • Package references.

    • EventDriven.DependencyInjection.URF.Mongo
  • appsettings.json file.

  "MyMongoSettings": {
    "ConnectionString": "mongodb://localhost:27017",
    "DatabaseName": "SagaConfigDb",
    "CollectionName": "MyEntities"
  • Strongly typed app settings class.
public class MyMongoSettings : IMongoDbSettings
    public string ConnectionString { get; set; } = null!;
    public string DatabaseName { get; set; } = null!;
    public string CollectionName { get; set; } = null!;
  • Entity class.
public class MyEntity
    public Guid Id { get; set; }
    public string StringValue { get; set; } = null!;
    public int MyIntValue { get; set; }
  • In a Web API project.
builder.Services.AddMongoDbSettings<MyMongoSettings, MyEntity>(builder.Configuration);
  • In a console project.
var host = Host
    .ConfigureServices(services =>
        var config = services.BuildServiceProvider()
        services.AddMongoDbSettings<MyMongoSettings, MyEntity>(config);
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on EventDriven.DependencyInjection.URF.Mongo:

Package Downloads

A mechanism for validating messages against schemas that are stored in a registry by topic name.


A MongoDB implementation of event caching with Dapr state store.


A MongoDB implementation of event caching.


A set of abstractions for implementing the Saga pattern.


A set of abstractions for implementing the Saga pattern.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 1,845 8/8/2022
1.2.0 95 8/5/2022
1.1.0 20,350 2/26/2022
1.1.0-beta4 420 2/9/2022
1.1.0-beta3 2,597 1/31/2022
1.1.0-beta2 217 1/8/2022
1.1.0-beta1 74 1/7/2022
1.0.0-beta2 78 1/4/2022
1.0.0-beta1 83 1/4/2022