Escendit.Extensions.Hosting.Cassandra
is a NuGet package that provides the ability to register
ICluster
. This package is suitable for host builder type registrations. For .NET Workers & Orleans Silos.
To install Escendit.Extensions.Hosting.Cassandra
, run the following command in the Package Manager Console:
Install-Package Escendit.Extensions.Hosting.Cassandra
Host
.CreateDefaultBuilder()
.AddCassandraClientOptionsAsDefault(...);
Host
.CreateDefaultBuilder()
.AddCassandraClientOptions("name", ...);
Host
.CreateDefaultBuilder()
.AddCassandraClientAsDefault(...);
Host
.CreateDefaultBuilder()
.AddCassandraClientFromOptionsAsDefault("options name");
Host
.CreateDefaultBuilder()
.AddCassandraClient("name", ...);
Host
.CreateDefaultBuilder()
.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.