protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            switch (_persistenceMode)
            {
            case PersistenceMode.InMemory:
                containerRegistry.AddInMemoryPersistence();
                break;

            case PersistenceMode.Sqlite:
                var connectionString = ConfigurationManager.ConnectionStrings["connString"].ConnectionString;
                containerRegistry.AddSqlite(dbOptions => dbOptions.ConnectionString = connectionString);
                break;
            }
        }