logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class IOPathService

    Implementation of IPathService using System.IO and Environment.SpecialFolder.

    Inheritance
    object
    IOPathService
    Implements
    IPathService
    IService
    IFoundationSettings
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.FilePersistence.Infrastructure.Services
    Assembly: Serenity.IOFilePersistence.Infrastructure.dll
    Syntax
    public class IOPathService : IPathService, IService, IFoundationSettings

    Constructors

    IOPathService(string, string, ILogService)

    Constructor for IOPathService.

    Declaration
    public IOPathService(string companyName, string productName, ILogService logService)
    Parameters
    Type Name Description
    string companyName

    The company name for path service initialization.

    string productName

    The product name for path service initialization.

    ILogService logService

    The log service for logging purposes.

    Properties

    Guid

    Declaration
    public string Guid { get; set; }
    Property Value
    Type Description
    string

    Id

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string

    LogService

    Declaration
    public ILogService LogService { get; set; }
    Property Value
    Type Description
    ILogService

    Methods

    Combine(params string[])

    Combine multiple path parts into a single normalized path.

    Declaration
    public string Combine(params string[] parts)
    Parameters
    Type Name Description
    string[] parts

    The parts of the path to combine.

    Returns
    Type Description
    string

    The combined and normalized path.

    GetCacheDir()

    Get the cache directory path.

    Declaration
    public string GetCacheDir()
    Returns
    Type Description
    string

    The cache directory path.

    GetConfigDir()

    Get the configuration directory path.

    Declaration
    public string GetConfigDir()
    Returns
    Type Description
    string

    The configuration directory path.

    GetTempDir()

    Get the temporary directory path.

    Declaration
    public string GetTempDir()
    Returns
    Type Description
    string

    The temporary directory path.

    GetUserDataDir()

    Get the user data directory path.

    Declaration
    public string GetUserDataDir()
    Returns
    Type Description
    string

    The user data directory path.

    Implements

    IPathService
    IService
    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved