diff --git a/docs/readme.md b/docs/readme.md index e2d2dd31..e9f5c218 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -112,6 +112,9 @@ Release Notes ### Upcoming - Changes - Firebase AI: Add support for receiving Live API Transcripts. + - Storage: Add support for Firebase Storage emulator via `UseEmulator`. + The `UseEmulator` method should be called before invoking any other + methods on a new instance of Storage. Default port is 9199. ### 13.4.0 - Changes diff --git a/storage/src/FirebaseStorage.cs b/storage/src/FirebaseStorage.cs index c64b8306..3e823275 100644 --- a/storage/src/FirebaseStorage.cs +++ b/storage/src/FirebaseStorage.cs @@ -258,6 +258,21 @@ public TimeSpan MaxOperationRetryTime { } } + /// + /// Configures the Storage SDK to use an emulated backend instead of + /// the default remote backend. This method should be called before invoking + /// any other methods on a new instance of Storage + /// + /// + /// The host that the storage emulator is running on. + /// + /// + /// The port that the storage emulator is running on. + /// + public void UseEmulator(string host, int port) { + storageInternal.UseEmulator(host, port); + } + /// /// Creates a new ///