mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
277 lines
53 KiB
HTML
277 lines
53 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>tgstation-server: src/Tgstation.Server.Host/Controllers/RootController.cs Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">tgstation-server<span id="projectnumber"> 6.19.3</span>
|
|
</div>
|
|
<div id="projectbrief">The /tg/station 13 server suite</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_34761767c1c3cd212f9d2f80ea0828a8.html">Tgstation.Server.Host</a></li><li class="navelem"><a class="el" href="dir_38cec1532eaed7aa1de0b599a76e3e80.html">Controllers</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">RootController.cs</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_root_controller_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="keyword">using </span>System;</div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="keyword">using </span>System.Collections.Generic;</div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">using </span>System.Linq.Expressions;</div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="keyword">using </span>Microsoft.AspNetCore.Authorization;</div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="keyword">using </span>Microsoft.AspNetCore.Hosting;</div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">using </span>Microsoft.AspNetCore.Mvc;</div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">using </span>Microsoft.Extensions.Logging;</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">using </span>Microsoft.Extensions.Options;</div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a>;</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_configuration.html">Tgstation.Server.Host.Configuration</a>;</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_extensions.html">Tgstation.Server.Host.Extensions</a>;</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_system.html">Tgstation.Server.Host.System</a>;</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_utils.html">Tgstation.Server.Host.Utils</a>;</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers.html">Tgstation.Server.Host.Controllers</a></div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span>{</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> [Route(<span class="stringliteral">"/"</span>)]</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> [ApiExplorerSettings(IgnoreApi = <span class="keyword">true</span>)]</div>
|
|
<div class="foldopen" id="foldopen00024" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html"> 24</a></span> <span class="keyword">public</span> <span class="keyword">sealed</span> <span class="keyword">class </span><a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html">RootController</a> : <a class="code hl_class" href="class_controller.html">Controller</a></div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> {</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a02ea5097cc04d4d8987e3771212aaf48"> 29</a></span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a02ea5097cc04d4d8987e3771212aaf48">LogoSvgWindowsName</a> = <span class="stringliteral">"0176d5d8b7d307f158e0"</span>;</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa022d3bfaff46fb93cd54325279b4184"> 34</a></span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa022d3bfaff46fb93cd54325279b4184">LogoSvgLinuxName</a> = <span class="stringliteral">"b5616c99bf2052a6bbd7"</span>;</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3e77b6cfba61fc94b047328ea4214220"> 39</a></span> readonly <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html">IAssemblyInformationProvider</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3e77b6cfba61fc94b047328ea4214220">assemblyInformationProvider</a>;</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a097fc102efbf9fb997ca46721595ad67"> 44</a></span> readonly <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html">IPlatformIdentifier</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a097fc102efbf9fb997ca46721595ad67">platformIdentifier</a>;</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aca0db0554f654776e107e163f7bd9cbe"> 49</a></span> readonly IWebHostEnvironment <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aca0db0554f654776e107e163f7bd9cbe">hostEnvironment</a>;</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#ab6dcfb2e7bac0dd51ed26d6920eaa77c"> 54</a></span> readonly IOptions<GeneralConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#ab6dcfb2e7bac0dd51ed26d6920eaa77c">generalConfigurationOptions</a>;</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a08de11670cd92ef5d60541f59bec0d60"> 59</a></span> readonly IOptions<ControlPanelConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a08de11670cd92ef5d60541f59bec0d60">controlPanelConfigurationOptions</a>;</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa7c8751b3b49d242872c270ea6d3952b"> 64</a></span> readonly IOptions<InternalConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa7c8751b3b49d242872c270ea6d3952b">internalConfigurationOptions</a>;</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a10cbdff9320a4a829a5d9db73fba4a44"> 69</a></span> readonly ILogger<RootController> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a10cbdff9320a4a829a5d9db73fba4a44">logger</a>;</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
|
|
<div class="foldopen" id="foldopen00076" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#acbe1ee13bd45be7f716cc13e8f0f7fd9"> 76</a></span> <span class="keyword">static</span> Tuple<string, string?> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#acbe1ee13bd45be7f716cc13e8f0f7fd9">GetControlPanelActionLink</a>(Expression<Func<ControlPanelController, IActionResult>> actionExpression)</div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> {</div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> var memberSelectorExpression = (MethodCallExpression)actionExpression.Body;</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> var method = memberSelectorExpression.Method;</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> var controllerName = typeof(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_control_panel_controller.html">ControlPanelController</a>).Name;</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keyword">const</span> <span class="keywordtype">string</span> ControllerSuffix = nameof(<a class="code hl_class" href="class_controller.html">Controller</a>);</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">if</span> (controllerName.EndsWith(ControllerSuffix, StringComparison.Ordinal))</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> controllerName = controllerName.Substring(0, controllerName.Length - ControllerSuffix.Length);</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> var actionName = method.Name;</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">return</span> Tuple.Create<string, <span class="keywordtype">string</span>?>(controllerName, actionName);</div>
|
|
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
|
|
<div class="foldopen" id="foldopen00102" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a4f8f5d1b33bcdba61b16ea888cbbf5a9"> 102</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a4f8f5d1b33bcdba61b16ea888cbbf5a9">RootController</a>(</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html">IAssemblyInformationProvider</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3e77b6cfba61fc94b047328ea4214220">assemblyInformationProvider</a>,</div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html">IPlatformIdentifier</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a097fc102efbf9fb997ca46721595ad67">platformIdentifier</a>,</div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> IWebHostEnvironment <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aca0db0554f654776e107e163f7bd9cbe">hostEnvironment</a>,</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> ILogger<RootController> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a10cbdff9320a4a829a5d9db73fba4a44">logger</a>,</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> IOptions<GeneralConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#ab6dcfb2e7bac0dd51ed26d6920eaa77c">generalConfigurationOptions</a>,</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> IOptions<ControlPanelConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a08de11670cd92ef5d60541f59bec0d60">controlPanelConfigurationOptions</a>,</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> IOptions<InternalConfiguration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa7c8751b3b49d242872c270ea6d3952b">internalConfigurationOptions</a>)</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> {</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> this.assemblyInformationProvider = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3e77b6cfba61fc94b047328ea4214220">assemblyInformationProvider</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3e77b6cfba61fc94b047328ea4214220">assemblyInformationProvider</a>));</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> this.platformIdentifier = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a097fc102efbf9fb997ca46721595ad67">platformIdentifier</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a097fc102efbf9fb997ca46721595ad67">platformIdentifier</a>));</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> this.hostEnvironment = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aca0db0554f654776e107e163f7bd9cbe">hostEnvironment</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aca0db0554f654776e107e163f7bd9cbe">hostEnvironment</a>));</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> this.logger = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a10cbdff9320a4a829a5d9db73fba4a44">logger</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a10cbdff9320a4a829a5d9db73fba4a44">logger</a>));</div>
|
|
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> this.generalConfigurationOptions = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#ab6dcfb2e7bac0dd51ed26d6920eaa77c">generalConfigurationOptions</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#ab6dcfb2e7bac0dd51ed26d6920eaa77c">generalConfigurationOptions</a>));</div>
|
|
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> this.controlPanelConfigurationOptions = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a08de11670cd92ef5d60541f59bec0d60">controlPanelConfigurationOptions</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a08de11670cd92ef5d60541f59bec0d60">controlPanelConfigurationOptions</a>));</div>
|
|
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> this.internalConfigurationOptions = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa7c8751b3b49d242872c270ea6d3952b">internalConfigurationOptions</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(nameof(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa7c8751b3b49d242872c270ea6d3952b">internalConfigurationOptions</a>));</div>
|
|
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> [HttpGet]</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> [AllowAnonymous]</div>
|
|
<div class="foldopen" id="foldopen00126" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3aab3a4884c73ba380c0a61348bb4bfa"> 126</a></span> <span class="keyword">public</span> IActionResult <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3aab3a4884c73ba380c0a61348bb4bfa">Index</a>()</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> {</div>
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> var panelEnabled = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a08de11670cd92ef5d60541f59bec0d60">controlPanelConfigurationOptions</a>.Value.Enable;</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> var apiDocsEnabled = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#ab6dcfb2e7bac0dd51ed26d6920eaa77c">generalConfigurationOptions</a>.Value.HostApiDocumentation;</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> var controlPanelRoute = $<span class="stringliteral">"{ControlPanelController.ControlPanelRoute.TrimStart('/')}/"</span>;</div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordflow">if</span> (panelEnabled && !apiDocsEnabled)</div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keywordflow">return</span> Redirect(controlPanelRoute);</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> Dictionary<string, string>? links = <span class="keyword">null</span>;</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">if</span> (panelEnabled || apiDocsEnabled)</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> {</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> links = <span class="keyword">new</span> Dictionary<string, string>();</div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">if</span> (panelEnabled)</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> links.Add(<span class="stringliteral">"Web Control Panel"</span>, controlPanelRoute);</div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordflow">if</span> (apiDocsEnabled)</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> {</div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa7c8751b3b49d242872c270ea6d3952b">internalConfigurationOptions</a>.Value.EnableGraphQL)</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> links.Add(<span class="stringliteral">"GraphQL API Documentation"</span>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a502122c533fa679ec8c34ddb89431fa6">GraphQL</a>);</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> </div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> links.Add(<span class="stringliteral">"REST API Documentation"</span>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_swagger_configuration.html">SwaggerConfiguration</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_swagger_configuration.html#a491cd42b9d11a659b718c70ebebb9014">DocumentationSiteRouteExtension</a>);</div>
|
|
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
|
|
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> }</div>
|
|
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">else</span></div>
|
|
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> links = <span class="keyword">null</span>;</div>
|
|
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
|
|
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> var model = <span class="keyword">new</span></div>
|
|
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> {</div>
|
|
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> Links = links,</div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> Title = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3e77b6cfba61fc94b047328ea4214220">assemblyInformationProvider</a>.<a class="code hl_property" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html#abd6db0f6e1ea9273baeacaa66ae81fa3">VersionString</a>,</div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> };</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keywordflow">return</span> View(model);</div>
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> [HttpGet(<span class="stringliteral">"logo.svg"</span>)]</div>
|
|
<div class="foldopen" id="foldopen00169" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aecd08be3d35b49b9b4154b842eae34b3"> 169</a></span> <span class="keyword">public</span> IActionResult <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aecd08be3d35b49b9b4154b842eae34b3">GetLogo</a>()</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> {</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="comment">// these are different because of motherfucking line endings -_-</span></div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a097fc102efbf9fb997ca46721595ad67">platformIdentifier</a>.<a class="code hl_property" href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html#aa9bf3bd1082b7178f58cb1f36839550e">IsWindows</a>)</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> {</div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> VirtualFileResult? result = this.TryServeFile(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aca0db0554f654776e107e163f7bd9cbe">hostEnvironment</a>, <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a10cbdff9320a4a829a5d9db73fba4a44">logger</a>, $<span class="stringliteral">"{LogoSvgWindowsName}.svg"</span>);</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordflow">if</span> (result != <span class="keyword">null</span>)</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> <span class="keywordflow">return</span> result;</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
|
|
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="comment">// BUT THE UPDATE PACKAGES ARE BUILT ON LINUX RAAAAAGH</span></div>
|
|
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> }</div>
|
|
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
|
|
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <span class="keywordflow">return</span> (IActionResult?)this.TryServeFile(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aca0db0554f654776e107e163f7bd9cbe">hostEnvironment</a>, <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a10cbdff9320a4a829a5d9db73fba4a44">logger</a>, $<span class="stringliteral">"{LogoSvgLinuxName}.svg"</span>) ?? NotFound();</div>
|
|
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> </div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> [HttpGet(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_control_panel_controller.html">ControlPanelController</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_control_panel_controller.html#af8b3e06742a0bd3b6bb66d347d1a79a5">ChannelJsonRoute</a>)]</div>
|
|
<div class="foldopen" id="foldopen00189" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a1a8f7276eb95a8b86a450c829e5bd69a"> 189</a></span> <span class="keyword">public</span> RedirectToActionResult <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a1a8f7276eb95a8b86a450c829e5bd69a">WebpanelChannelRedirect</a>()</div>
|
|
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> {</div>
|
|
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> var actionTuple = <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#acbe1ee13bd45be7f716cc13e8f0f7fd9">GetControlPanelActionLink</a>(controller => controller.GetChannelJson());</div>
|
|
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
|
|
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="keywordflow">return</span> RedirectToActionPermanent(</div>
|
|
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> actionTuple.Item2,</div>
|
|
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> actionTuple.Item1);</div>
|
|
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span>}</div>
|
|
<div class="ttc" id="aclass_controller_html"><div class="ttname"><a href="class_controller.html">Controller</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Tgstation.Server.Api.Routes</a></div><div class="ttdoc">Routes to a server actions.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00008">Routes.cs:9</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html_a502122c533fa679ec8c34ddb89431fa6"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a502122c533fa679ec8c34ddb89431fa6">Tgstation.Server.Api.Routes.GraphQL</a></div><div class="ttdeci">const string GraphQL</div><div class="ttdoc">The GraphQL route.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00018">Routes.cs:18</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_control_panel_controller_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_control_panel_controller.html">Tgstation.Server.Host.Controllers.ControlPanelController</a></div><div class="ttdoc">Controller for the web control panel.</div><div class="ttdef"><b>Definition</b> <a href="_control_panel_controller_8cs_source.html#l00026">ControlPanelController.cs:27</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_control_panel_controller_html_af8b3e06742a0bd3b6bb66d347d1a79a5"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_control_panel_controller.html#af8b3e06742a0bd3b6bb66d347d1a79a5">Tgstation.Server.Host.Controllers.ControlPanelController.ChannelJsonRoute</a></div><div class="ttdeci">const string ChannelJsonRoute</div><div class="ttdoc">The route to the control panel channel .json.</div><div class="ttdef"><b>Definition</b> <a href="_control_panel_controller_8cs_source.html#l00036">ControlPanelController.cs:36</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html">Tgstation.Server.Host.Controllers.RootController</a></div><div class="ttdoc">The root path Controller.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00024">RootController.cs:25</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_a02ea5097cc04d4d8987e3771212aaf48"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a02ea5097cc04d4d8987e3771212aaf48">Tgstation.Server.Host.Controllers.RootController.LogoSvgWindowsName</a></div><div class="ttdeci">const string LogoSvgWindowsName</div><div class="ttdoc">The name of the TGS logo .svg in the IWebHostEnvironment.WebRootPath on Windows.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00029">RootController.cs:29</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_a08de11670cd92ef5d60541f59bec0d60"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a08de11670cd92ef5d60541f59bec0d60">Tgstation.Server.Host.Controllers.RootController.controlPanelConfigurationOptions</a></div><div class="ttdeci">readonly IOptions< ControlPanelConfiguration > controlPanelConfigurationOptions</div><div class="ttdoc">The IOptions<TOptions> of ControlPanelConfiguration for the RootController.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00059">RootController.cs:59</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_a097fc102efbf9fb997ca46721595ad67"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a097fc102efbf9fb997ca46721595ad67">Tgstation.Server.Host.Controllers.RootController.platformIdentifier</a></div><div class="ttdeci">readonly IPlatformIdentifier platformIdentifier</div><div class="ttdoc">The IPlatformIdentifier for the RootController.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00044">RootController.cs:44</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_a10cbdff9320a4a829a5d9db73fba4a44"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a10cbdff9320a4a829a5d9db73fba4a44">Tgstation.Server.Host.Controllers.RootController.logger</a></div><div class="ttdeci">readonly ILogger< RootController > logger</div><div class="ttdoc">The ILogger for the RootController.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00069">RootController.cs:69</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_a1a8f7276eb95a8b86a450c829e5bd69a"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a1a8f7276eb95a8b86a450c829e5bd69a">Tgstation.Server.Host.Controllers.RootController.WebpanelChannelRedirect</a></div><div class="ttdeci">RedirectToActionResult WebpanelChannelRedirect()</div><div class="ttdoc">Workaround for the webpanel always expecting a trailing slash.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00189">RootController.cs:189</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_a3aab3a4884c73ba380c0a61348bb4bfa"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3aab3a4884c73ba380c0a61348bb4bfa">Tgstation.Server.Host.Controllers.RootController.Index</a></div><div class="ttdeci">IActionResult Index()</div><div class="ttdoc">Gets the server's homepage.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00126">RootController.cs:126</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_a3e77b6cfba61fc94b047328ea4214220"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a3e77b6cfba61fc94b047328ea4214220">Tgstation.Server.Host.Controllers.RootController.assemblyInformationProvider</a></div><div class="ttdeci">readonly IAssemblyInformationProvider assemblyInformationProvider</div><div class="ttdoc">The IAssemblyInformationProvider for the RootController.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00039">RootController.cs:39</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_a4f8f5d1b33bcdba61b16ea888cbbf5a9"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#a4f8f5d1b33bcdba61b16ea888cbbf5a9">Tgstation.Server.Host.Controllers.RootController.RootController</a></div><div class="ttdeci">RootController(IAssemblyInformationProvider assemblyInformationProvider, IPlatformIdentifier platformIdentifier, IWebHostEnvironment hostEnvironment, ILogger< RootController > logger, IOptions< GeneralConfiguration > generalConfigurationOptions, IOptions< ControlPanelConfiguration > controlPanelConfigurationOptions, IOptions< InternalConfiguration > internalConfigurationOptions)</div><div class="ttdoc">Initializes a new instance of the RootController class.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00102">RootController.cs:102</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_aa022d3bfaff46fb93cd54325279b4184"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa022d3bfaff46fb93cd54325279b4184">Tgstation.Server.Host.Controllers.RootController.LogoSvgLinuxName</a></div><div class="ttdeci">const string LogoSvgLinuxName</div><div class="ttdoc">The name of the TGS logo .svg in the IWebHostEnvironment.WebRootPath on Linux.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00034">RootController.cs:34</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_aa7c8751b3b49d242872c270ea6d3952b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aa7c8751b3b49d242872c270ea6d3952b">Tgstation.Server.Host.Controllers.RootController.internalConfigurationOptions</a></div><div class="ttdeci">readonly IOptions< InternalConfiguration > internalConfigurationOptions</div><div class="ttdoc">The IOptions<TOptions> of InternalConfiguration for the RootController.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00064">RootController.cs:64</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_ab6dcfb2e7bac0dd51ed26d6920eaa77c"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#ab6dcfb2e7bac0dd51ed26d6920eaa77c">Tgstation.Server.Host.Controllers.RootController.generalConfigurationOptions</a></div><div class="ttdeci">readonly IOptions< GeneralConfiguration > generalConfigurationOptions</div><div class="ttdoc">The IOptions<TOptions> of GeneralConfiguration for the RootController.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00054">RootController.cs:54</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_aca0db0554f654776e107e163f7bd9cbe"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aca0db0554f654776e107e163f7bd9cbe">Tgstation.Server.Host.Controllers.RootController.hostEnvironment</a></div><div class="ttdeci">readonly IWebHostEnvironment hostEnvironment</div><div class="ttdoc">THe IWebHostEnvironment for the RootController.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00049">RootController.cs:49</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_acbe1ee13bd45be7f716cc13e8f0f7fd9"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#acbe1ee13bd45be7f716cc13e8f0f7fd9">Tgstation.Server.Host.Controllers.RootController.GetControlPanelActionLink</a></div><div class="ttdeci">static Tuple< string, string?> GetControlPanelActionLink(Expression< Func< ControlPanelController, IActionResult > > actionExpression)</div><div class="ttdoc">Gets a Tuple<T1, T2> giving the ControlPanelController and action names for a given actionExpression ...</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00076">RootController.cs:76</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller_html_aecd08be3d35b49b9b4154b842eae34b3"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_root_controller.html#aecd08be3d35b49b9b4154b842eae34b3">Tgstation.Server.Host.Controllers.RootController.GetLogo</a></div><div class="ttdeci">IActionResult GetLogo()</div><div class="ttdoc">Retrieve the logo .svg for the webpanel.</div><div class="ttdef"><b>Definition</b> <a href="_root_controller_8cs_source.html#l00169">RootController.cs:169</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_swagger_configuration_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_swagger_configuration.html">Tgstation.Server.Host.Utils.SwaggerConfiguration</a></div><div class="ttdoc">Implements various filters for Swashbuckle.</div><div class="ttdef"><b>Definition</b> <a href="_swagger_configuration_8cs_source.html#l00029">SwaggerConfiguration.cs:30</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_swagger_configuration_html_a491cd42b9d11a659b718c70ebebb9014"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_swagger_configuration.html#a491cd42b9d11a659b718c70ebebb9014">Tgstation.Server.Host.Utils.SwaggerConfiguration.DocumentationSiteRouteExtension</a></div><div class="ttdeci">const string DocumentationSiteRouteExtension</div><div class="ttdoc">The path to the hosted documentation site.</div><div class="ttdef"><b>Definition</b> <a href="_swagger_configuration_8cs_source.html#l00039">SwaggerConfiguration.cs:39</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html">Tgstation.Server.Host.System.IAssemblyInformationProvider</a></div><div class="ttdoc">For retrieving the Assembly's location.</div><div class="ttdef"><b>Definition</b> <a href="_i_assembly_information_provider_8cs_source.html#l00010">IAssemblyInformationProvider.cs:11</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider_html_abd6db0f6e1ea9273baeacaa66ae81fa3"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_assembly_information_provider.html#abd6db0f6e1ea9273baeacaa66ae81fa3">Tgstation.Server.Host.System.IAssemblyInformationProvider.VersionString</a></div><div class="ttdeci">string VersionString</div><div class="ttdoc">A more verbose version of Version.</div><div class="ttdef"><b>Definition</b> <a href="_i_assembly_information_provider_8cs_source.html#l00030">IAssemblyInformationProvider.cs:30</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html">Tgstation.Server.Host.System.IPlatformIdentifier</a></div><div class="ttdoc">For identifying the current platform.</div><div class="ttdef"><b>Definition</b> <a href="_i_platform_identifier_8cs_source.html#l00008">IPlatformIdentifier.cs:9</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier_html_aa9bf3bd1082b7178f58cb1f36839550e"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_system_1_1_i_platform_identifier.html#aa9bf3bd1082b7178f58cb1f36839550e">Tgstation.Server.Host.System.IPlatformIdentifier.IsWindows</a></div><div class="ttdeci">bool IsWindows</div><div class="ttdoc">If the current platform is a Windows platform.</div><div class="ttdef"><b>Definition</b> <a href="_i_platform_identifier_8cs_source.html#l00014">IPlatformIdentifier.cs:14</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a></div><div class="ttdef"><b>Definition</b> <a href="_api_headers_8cs_source.html#l00019">ApiHeaders.cs:20</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_configuration_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_configuration.html">Tgstation.Server.Host.Configuration</a></div><div class="ttdef"><b>Definition</b> <a href="_control_panel_configuration_8cs_source.html#l00003">ControlPanelConfiguration.cs:4</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_controllers_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers.html">Tgstation.Server.Host.Controllers</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_controller_8cs_source.html#l00026">AdministrationController.cs:27</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_extensions_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_extensions.html">Tgstation.Server.Host.Extensions</a></div><div class="ttdef"><b>Definition</b> <a href="_application_builder_extensions_8cs_source.html#l00021">ApplicationBuilderExtensions.cs:22</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_system_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_system.html">Tgstation.Server.Host.System</a></div><div class="ttdef"><b>Definition</b> <a href="_assembly_information_provider_8cs_source.html#l00008">AssemblyInformationProvider.cs:9</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_utils_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_utils.html">Tgstation.Server.Host.Utils</a></div><div class="ttdef"><b>Definition</b> <a href="_graph_q_l_git_lab_client_8cs_source.html#l00006">GraphQLGitLabClient.cs:7</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|