tgstation-server
6.16.0
The /tg/station 13 server suite
Toggle main menu visibility
Main Page
Features
API
Architecture
Packages
Package List
Package Members
All
[
a
b
c
d
e
f
h
i
j
m
o
p
r
s
t
w
Functions
Variables
Enumerations
a
b
c
d
e
f
h
i
j
m
o
p
r
s
t
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerations
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Events
Files
File List
File Members
All
Functions
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
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
}
19
public
static
string
GetPathInLocalDirectory
(
this
IIOManager
ioManager,
IAssemblyInformationProvider
assemblyInformationProvider) {
…
}
30
}
11
static
class
IOManagerExtensions
{
…
};
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