Escendit.AspNetCore.Builder.Cassandra
is a NuGet package that provides the ability to register
ICluster
. This package is suitable for web application builder type registrations. For ASP.NET Core Web Applications.
To install Escendit.AspNetCore.Builder.Cassandra
, run the following command in the Package Manager Console:
Install-Package Escendit.AspNetCore.Builder.Cassandra
WebApplication
.CreateBuilder()
.AddCassandraClientOptionsAsDefault(...);
WebApplication
.CreateBuilder()
.AddCassandraClientOptions("name", ...);
WebApplication
.CreateBuilder()
.AddCassandraClientAsDefault(...);
WebApplication
.CreateBuilder()
.AddCassandraClientFromOptionsAsDefault("options name");
WebApplication
.CreateBuilder()
.AddCassandraClient("name", ...);
WebApplication
.CreateBuilder()
.AddCassandraClientFromOptions("name", "options name");
You can consume service with IServiceProvider
, required variant exists as-well.
serviceProvider
.GetCassandraClient();
serviceProvider
.GetCassandraClient("name");
If you'd like to contribute to cassandra-dotnet-extensions
,
please fork the repository and make changes as you'd like.
Pull requests are warmly welcome.