logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IGameSettingsServiceFactory

    Factory interface for creating instances of IGameSettingsService.

    Namespace: Serenity.GameSettings.Application.Interfaces
    Assembly: Serenity.Global.Application.dll
    Syntax
    public interface IGameSettingsServiceFactory

    Methods

    CreateService(string, string, IGameSettingsDefinition[], IEventDispatcherService, ILogService, PersistenceUseCases, IPathService, string)

    Creates a new instance of IGameSettingsService with the specified parameters.

    Declaration
    IGameSettingsService CreateService(string id, string guid, IGameSettingsDefinition[] gameSettingsDefinitions, IEventDispatcherService eventDispatcherService, ILogService logService, PersistenceUseCases persistenceUseCases, IPathService pathService, string persistedFileName = null)
    Parameters
    Type Name Description
    string id

    The unique identifier for the game settings service instance.

    string guid

    The globally unique identifier for the game settings service instance.

    IGameSettingsDefinition[] gameSettingsDefinitions

    An array of game settings definitions to initialize the service with.

    IEventDispatcherService eventDispatcherService

    The event dispatcher service for handling events.

    ILogService logService

    The logging service for logging information and errors.

    PersistenceUseCases persistenceUseCases

    The persistence use cases for saving and loading settings.

    IPathService pathService

    The path service for managing file paths.

    string persistedFileName

    The filename used for persisted game settings. Uses default when null.

    Returns
    Type Description
    IGameSettingsService

    A fully configured instance of IGameSettingsService.

    In this article
    © 2026 Serenity. All Rights Reserved