Path: redb/redb.Core/Extensions/RedbServiceInitializationExtensions.cs Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Extensions/RedbServiceInitializationExtensions.cs ---- using System; using System.Reflection; using System.Threading.Tasks; namespace redb.Core.Extensions { /// /// Obsolete initialization entry points, kept for callers that invoke them explicitly. Both delegate to /// . /// /// /// INIT-1 (review 2026-09-24): these used to carry a copy of the start-up sequence. The copy synchronized the /// schemes in parallel on one service instance (Task.WhenAll) - the one thing a single instance does not /// support - skipped the up-front validation of scheme names, and swallowed every synchronization error in a /// bare catch. The service's own InitializeAsync does all of it sequentially and loudly, and more. /// public static class RedbServiceInitializationExtensions { /// /// Initializes REDB at application start-up. Same as await redb.InitializeAsync(assemblies), /// which C# already picks over this extension when called on an instance. /// /// IRedbService instance /// Assemblies to scan. If not specified - all loaded assemblies are scanned [Obsolete("Use await redb.InitializeAsync() directly - method is integrated into IRedbService")] public static Task InitializeAsync(this IRedbService redb, params Assembly[] assemblies) => redb.InitializeAsync(assemblies); /// /// Synchronizes every scheme with [RedbScheme] - as part of the full initialization, which is the /// only supported way to do it. /// /// IRedbService instance /// Assemblies to scan. If not specified - all loaded are scanned [Obsolete("Use await redb.InitializeAsync() - method includes scheme synchronization")] public static Task AutoSyncSchemesAsync(this IRedbService redb, params Assembly[] assemblies) => redb.InitializeAsync(assemblies); } }