# StorageProviderExtensions

Package: [Microsoft.Orleans.Runtime](/orleans/docs/api/csharp/microsoft.orleans.runtime/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Runtime) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Hosting/StorageProviderHostExtensions.cs#L10)

```csharp
public static class StorageProviderExtensions
```

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## Methods

- [AddGrainStorage(IServiceCollection, string, Func&lt;IServiceProvider, string, T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.runtime.hosting.storageproviderextensions/methods/addgrainstorage-1-this-microsoft-extensions-dependencyinjection-iservicecollecti-e2b00898/)
