Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions storage/src/FirebaseStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,21 @@ public TimeSpan MaxOperationRetryTime {
}
}

/// <summary>
/// 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
/// <summary>
/// <param name="host">
/// The host that the storage emulator is running on.
/// </param>
/// <param name="port">
/// The port that the storage emulator is running on.
/// </param>
public void UseEmulator(string host, int port) {
storageInternal.UseEmulator(host, port);
}

/// <summary>
/// Creates a new
/// <see cref="StorageReference" />
Expand Down