Class IOPathService
Implementation of IPathService using System.IO and Environment.SpecialFolder.
Inherited Members
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. |