/// <summary> /// Returns the messaging instance for the specified app. /// </summary> /// <returns>The <see cref="FirebaseRemoteConfig"/> instance associated with the specified /// app.</returns> /// <exception cref="System.ArgumentNullException">If the app argument is null.</exception> /// <param name="app">An app instance.</param> public static FirebaseRemoteConfig GetRemoteConfig(FirebaseApp app) { if (app == null) { throw new ArgumentNullException("App argument must not be null."); } return(app.GetOrInit(nameof(FirebaseRemoteConfig), () => new FirebaseRemoteConfig(app))); }
/// <summary> /// Returns the auth instance for the specified app. /// </summary> /// <returns>The <see cref="FirebaseAuth"/> instance associated with the specified /// app.</returns> /// <exception cref="System.ArgumentNullException">If the app argument is null.</exception> /// <param name="app">An app instance.</param> public static FirebaseAuth GetAuth(FirebaseApp app) { if (app == null) { throw new ArgumentNullException("App argument must not be null."); } return(app.GetOrInit <FirebaseAuth>(typeof(FirebaseAuth).Name, () => { return new FirebaseAuth(app); })); }
/// <summary> /// Returns the StorageClient instance for the specified app. /// </summary> /// <returns>The <see cref="StorageClient"/> instance associated with the specified /// app.</returns> /// <exception cref="System.ArgumentNullException">If the app argument is null.</exception> /// <param name="app">An app instance.</param> public static StorageClient GetStorageClient(FirebaseApp app) { if (app == null) { throw new ArgumentNullException("App argument must not be null."); } return(app.GetOrInit <StorageClientHelper>(typeof(StorageClientHelper).Name, () => { return new StorageClientHelper(app); }).storageClient); }