tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Extensions
IOManagerExtensions.cs
Go to the documentation of this file.
1
using
System;
2
3
using
Tgstation.Server.Host.IO
;
4
using
Tgstation.Server.Host.System
;
5
6
namespace
Tgstation.Server.Host.Extensions
7
{
11
static
class
IOManagerExtensions
12
{
19
public
static
string
GetPathInLocalDirectory
(
this
IIOManager
ioManager,
IAssemblyInformationProvider
assemblyInformationProvider)
20
{
21
ArgumentNullException.ThrowIfNull(ioManager);
22
ArgumentNullException.ThrowIfNull(assemblyInformationProvider);
23
24
return
ioManager.
ConcatPath
(
25
Environment.GetFolderPath(
26
Environment.SpecialFolder.LocalApplicationData,
// we use local application data here instead of comman application data because we store stuff here we don't want other users interfering with
27
Environment.SpecialFolderOption.DoNotVerify),
28
assemblyInformationProvider.
VersionPrefix
);
29
}
30
}
31
}
Tgstation.Server.Host.Extensions.IOManagerExtensions
Extension methods for IIOManager.
Definition
IOManagerExtensions.cs:12
Tgstation.Server.Host.Extensions.IOManagerExtensions.GetPathInLocalDirectory
static string GetPathInLocalDirectory(this IIOManager ioManager, IAssemblyInformationProvider assemblyInformationProvider)
Gets the local application data folder used by TGS.
Definition
IOManagerExtensions.cs:19
Tgstation.Server.Host.IO.IIOManager
Interface for using filesystems.
Definition
IIOManager.cs:13
Tgstation.Server.Host.IO.IIOManager.ConcatPath
string ConcatPath(params string[] paths)
Combines an array of strings into a path.
Tgstation.Server.Host.System.IAssemblyInformationProvider
For retrieving the Assembly's location.
Definition
IAssemblyInformationProvider.cs:11
Tgstation.Server.Host.System.IAssemblyInformationProvider.VersionPrefix
string VersionPrefix
Prefix to VersionString.
Definition
IAssemblyInformationProvider.cs:25
Tgstation.Server.Host.Extensions
Definition
ApplicationBuilderExtensions.cs:22
Tgstation.Server.Host.IO
Definition
BufferedFileStreamProvider.cs:9
Tgstation.Server.Host.System
Definition
AssemblyInformationProvider.cs:9
Generated by
1.9.8