# FirestoreStorageHostingExtensions

Package: [Microsoft.Orleans.Persistence.Firestore](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/) 10.0.0

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Google/Orleans.Persistence.Firestore/FirestoreStorageHostingExtensions.cs#L17)

```csharp
public static class FirestoreStorageHostingExtensions
```

`Microsoft.Extensions.DependencyInjection.IServiceCollection` and [ISiloBuilder](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.hosting.isilobuilder/) extensions.

## Methods

- [AddFirestoreGrainStorage(IServiceCollection, string, Action&lt;FirestoreStateStorageOptions&gt;)](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.hosting.firestorestoragehostingextensions/methods/addfirestoregrainstorage-this-microsoft-extensions-dependencyinjection-iservicec-f8751afa/)
- [AddFirestoreGrainStorage(IServiceCollection, string, Action&lt;OptionsBuilder&lt;FirestoreStateStorageOptions&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.hosting.firestorestoragehostingextensions/methods/addfirestoregrainstorage-this-microsoft-extensions-dependencyinjection-iservicec-aad805b6/)
- [AddFirestoreGrainStorage(ISiloBuilder, string, Action&lt;FirestoreStateStorageOptions&gt;)](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.hosting.firestorestoragehostingextensions/methods/addfirestoregrainstorage-this-orleans-hosting-isilobuilder-string-system-action-4629c151/)
- [AddFirestoreGrainStorage(ISiloBuilder, string, Action&lt;OptionsBuilder&lt;FirestoreStateStorageOptions&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.hosting.firestorestoragehostingextensions/methods/addfirestoregrainstorage-this-orleans-hosting-isilobuilder-string-system-action-3855d83d/)
- [AddFirestoreGrainStorageAsDefault(IServiceCollection, Action&lt;FirestoreStateStorageOptions&gt;)](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.hosting.firestorestoragehostingextensions/methods/addfirestoregrainstorageasdefault-this-microsoft-extensions-dependencyinjection-8365c5bd/)
- [AddFirestoreGrainStorageAsDefault(IServiceCollection, Action&lt;OptionsBuilder&lt;FirestoreStateStorageOptions&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.hosting.firestorestoragehostingextensions/methods/addfirestoregrainstorageasdefault-this-microsoft-extensions-dependencyinjection-40abd4d9/)
- [AddFirestoreGrainStorageAsDefault(ISiloBuilder, Action&lt;FirestoreStateStorageOptions&gt;)](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.hosting.firestorestoragehostingextensions/methods/addfirestoregrainstorageasdefault-this-orleans-hosting-isilobuilder-system-actio-efefd3dc/)
- [AddFirestoreGrainStorageAsDefault(ISiloBuilder, Action&lt;OptionsBuilder&lt;FirestoreStateStorageOptions&gt;&gt;)](/orleans/docs/api/csharp/microsoft.orleans.persistence.firestore/orleans.hosting.firestorestoragehostingextensions/methods/addfirestoregrainstorageasdefault-this-orleans-hosting-isilobuilder-system-actio-8865236c/)
