Files
tgstation-server/_service_collection_extensions_8cs_source.html

331 lines
62 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/Extensions/ServiceCollectionExtensions.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">&#160;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&amp;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&amp;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&amp;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_5ae0a4770cfe9bc511dad7df7deabb23.html">Extensions</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">ServiceCollectionExtensions.cs</div></div>
</div><!--header-->
<div class="contents">
<a href="_service_collection_extensions_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.Diagnostics;</div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">using </span>System.Globalization;</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.Extensions.Configuration;</div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="keyword">using </span>Microsoft.Extensions.DependencyInjection;</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">using </span>Microsoft.Extensions.DependencyInjection.Extensions;</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> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword">using </span>Serilog;</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">using </span>Serilog.Configuration;</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">using </span>Serilog.Sinks.Elasticsearch;</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </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_components_1_1_chat_1_1_providers.html">Tgstation.Server.Host.Components.Chat.Providers</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_configuration.html">Tgstation.Server.Host.Configuration</a>;</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_i_o.html">Tgstation.Server.Host.IO</a>;</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</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="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub.html">Tgstation.Server.Host.Utils.GitHub</a>;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r.html">Tgstation.Server.Host.Utils.SignalR</a>;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">namespace </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="l00022" name="l00022"></a><span class="lineno"> 22</span>{</div>
<div class="foldopen" id="foldopen00026" data-start="{" data-end="};">
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html"> 26</a></span> <span class="keyword">static</span> <span class="keyword">class </span><a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html">ServiceCollectionExtensions</a></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> {</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#aab434a6c90b6e9b3167c33c5a3bb5a16"> 31</a></span> <span class="keyword">static</span> Type? <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#aab434a6c90b6e9b3167c33c5a3bb5a16">chatProviderFactoryType</a>;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a62ba81ab02c824cc6242178086ab38d2"> 36</a></span> <span class="keyword">static</span> Type? <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a62ba81ab02c824cc6242178086ab38d2">gitHubServiceFactoryType</a>;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a47faaef515111935b2aa423d80750991"> 41</a></span> <span class="keyword">static</span> Type? <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a47faaef515111935b2aa423d80750991">fileDownloaderType</a>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ab8772f06fd0e560d968a76dca664aa69"> 46</a></span> <span class="keyword">static</span> ServiceDescriptor? <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ab8772f06fd0e560d968a76dca664aa69">additionalLoggerProvider</a>;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="foldopen" id="foldopen00051" data-start="{" data-end="}">
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a93806b1bfd1d8b4e4c5cae3a6aca88b9"> 51</a></span> <span class="keyword">static</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a93806b1bfd1d8b4e4c5cae3a6aca88b9">ServiceCollectionExtensions</a>()</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> {</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a45e6f284e032b7cf5db819951915529b">UseDefaultServices</a>();</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> }</div>
</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="foldopen" id="foldopen00060" data-start="{" data-end="}">
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a593922ee477110eeef84e5e54c1dbd8c"> 60</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a593922ee477110eeef84e5e54c1dbd8c">UseChatProviderFactory&lt;TProviderFactory&gt;</a>()</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> where TProviderFactory : <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_chat_1_1_providers_1_1_i_provider_factory.html">IProviderFactory</a></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> {</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#aab434a6c90b6e9b3167c33c5a3bb5a16">chatProviderFactoryType</a> = typeof(TProviderFactory);</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> }</div>
</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="foldopen" id="foldopen00070" data-start="{" data-end="}">
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ad4a013fe169c7e7b5013c9d7fd5fc33d"> 70</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ad4a013fe169c7e7b5013c9d7fd5fc33d">UseGitHubServiceFactory&lt;TGitHubServiceFactory&gt;</a>()</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> where TGitHubServiceFactory : <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_i_git_hub_service_factory.html">IGitHubServiceFactory</a></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> {</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a62ba81ab02c824cc6242178086ab38d2">gitHubServiceFactoryType</a> = typeof(TGitHubServiceFactory);</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="foldopen" id="foldopen00080" data-start="{" data-end="}">
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ac9c5c691827870d86c0ba5fc84412d48"> 80</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ac9c5c691827870d86c0ba5fc84412d48">UseFileDownloader&lt;TFileDownloader&gt;</a>()</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> where TFileDownloader : <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_i_o_1_1_i_file_downloader.html">IFileDownloader</a></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> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a47faaef515111935b2aa423d80750991">fileDownloaderType</a> = typeof(TFileDownloader);</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> }</div>
</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="foldopen" id="foldopen00091" data-start="{" data-end="}">
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a681e4d7a5cf9cb10a12c9796245e78a6"> 91</a></span> <span class="keyword">public</span> <span class="keyword">static</span> IServiceCollection <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a681e4d7a5cf9cb10a12c9796245e78a6">AddFileDownloader</a>(<span class="keyword">this</span> IServiceCollection serviceCollection)</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> {</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> ArgumentNullException.ThrowIfNull(serviceCollection);</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> serviceCollection.AddSingleton(typeof(<a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_i_o_1_1_i_file_downloader.html">IFileDownloader</a>), <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a47faaef515111935b2aa423d80750991">fileDownloaderType</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(<span class="stringliteral">&quot;fileDownloaderType not set!&quot;</span>));</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keywordflow">return</span> serviceCollection;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> }</div>
</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="foldopen" id="foldopen00105" data-start="{" data-end="}">
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a9ab698d8cc99e507d2aca948e8e7806e"> 105</a></span> <span class="keyword">public</span> <span class="keyword">static</span> IServiceCollection <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a9ab698d8cc99e507d2aca948e8e7806e">AddGitHub</a>(<span class="keyword">this</span> IServiceCollection serviceCollection)</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> {</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> ArgumentNullException.ThrowIfNull(serviceCollection);</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> serviceCollection.AddSingleton&lt;<a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_i_git_hub_client_factory.html">IGitHubClientFactory</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_git_hub_client_factory.html">GitHubClientFactory</a>&gt;();</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> serviceCollection.AddSingleton(typeof(<a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_i_git_hub_service_factory.html">IGitHubServiceFactory</a>), <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a62ba81ab02c824cc6242178086ab38d2">gitHubServiceFactoryType</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(<span class="stringliteral">&quot;gitHubServiceFactoryType not set!&quot;</span>));</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordflow">return</span> serviceCollection;</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> }</div>
</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="foldopen" id="foldopen00119" data-start="{" data-end="}">
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a1d772a35a4564cb6ef773e9748d423c6"> 119</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a1d772a35a4564cb6ef773e9748d423c6">UseAdditionalLoggerProvider&lt;TLoggerProvider&gt;</a>()</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> where TLoggerProvider : class, ILoggerProvider</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> {</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ab8772f06fd0e560d968a76dca664aa69">additionalLoggerProvider</a> != <span class="keyword">null</span>)</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(<span class="stringliteral">&quot;Cannot have multiple additionalLoggerProviders!&quot;</span>);</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ab8772f06fd0e560d968a76dca664aa69">additionalLoggerProvider</a> = ServiceDescriptor.Singleton&lt;ILoggerProvider, TLoggerProvider&gt;();</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> }</div>
</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="foldopen" id="foldopen00132" data-start="{" data-end="}">
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a91b53c4e2779791d7f7c397e4fdb424d"> 132</a></span> <span class="keyword">public</span> <span class="keyword">static</span> IServiceCollection <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a91b53c4e2779791d7f7c397e4fdb424d">AddChatProviderFactory</a>(<span class="keyword">this</span> IServiceCollection serviceCollection)</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> {</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> ArgumentNullException.ThrowIfNull(serviceCollection);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keywordflow">return</span> serviceCollection.AddSingleton(typeof(<a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_chat_1_1_providers_1_1_i_provider_factory.html">IProviderFactory</a>), <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#aab434a6c90b6e9b3167c33c5a3bb5a16">chatProviderFactoryType</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(<span class="stringliteral">&quot;chatProviderFactoryType not set!&quot;</span>));</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> }</div>
</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
<div class="foldopen" id="foldopen00146" data-start="{" data-end="}">
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a47937ae7bd20d9b7cc5699cce51cb8ae"> 146</a></span> <span class="keyword">public</span> <span class="keyword">static</span> IServiceCollection <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a47937ae7bd20d9b7cc5699cce51cb8ae">UseStandardConfig&lt;TConfig&gt;</a>(<span class="keyword">this</span> IServiceCollection serviceCollection, IConfiguration configuration)</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> where TConfig : <span class="keyword">class</span></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> ArgumentNullException.ThrowIfNull(serviceCollection);</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> ArgumentNullException.ThrowIfNull(configuration);</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="keyword">const</span> <span class="keywordtype">string</span> SectionFieldName = nameof(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_general_configuration.html">GeneralConfiguration</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_general_configuration.html#a04dc43bd8ff33f4a8a791f750f7eb1d9">Section</a>);</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> var configType = typeof(TConfig);</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> var sectionField = configType.GetField(SectionFieldName) ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> String.Format(CultureInfo.InvariantCulture, <span class="stringliteral">&quot;{0} has no {1} field!&quot;</span>, configType, SectionFieldName));</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> var stringType = typeof(<span class="keywordtype">string</span>);</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="keywordflow">if</span> (sectionField.FieldType != stringType)</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException(String.Format(CultureInfo.InvariantCulture, <span class="stringliteral">&quot;{0} has invalid {1} field type, must be {2}!&quot;</span>, configType, SectionFieldName, stringType));</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> var sectionName = (string)sectionField.GetValue(<span class="keyword">null</span>)!;</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keywordflow">return</span> serviceCollection.Configure&lt;TConfig&gt;(configuration.GetSection(sectionName));</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> }</div>
</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> </div>
<div class="foldopen" id="foldopen00176" data-start="{" data-end="}">
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#aa5b74f413fe63602423419c04370b959"> 176</a></span> <span class="keyword">public</span> <span class="keyword">static</span> IServiceCollection <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#aa5b74f413fe63602423419c04370b959">SetupLogging</a>(</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keyword">this</span> IServiceCollection serviceCollection,</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> Action&lt;LoggerConfiguration&gt; configurationAction,</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> Action&lt;LoggerSinkConfiguration&gt;? sinkConfigurationAction = <span class="keyword">null</span>,</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> ElasticsearchSinkOptions? elasticsearchSinkOptions = <span class="keyword">null</span>,</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_internal_configuration.html">InternalConfiguration</a>? internalConfiguration = <span class="keyword">null</span>,</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_file_logging_configuration.html">FileLoggingConfiguration</a>? fileLoggingConfiguration = <span class="keyword">null</span>)</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> {</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="keywordflow">if</span> (internalConfiguration != <span class="keyword">null</span>)</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> ArgumentNullException.ThrowIfNull(fileLoggingConfiguration);</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keywordflow">return</span> serviceCollection.AddLogging(builder =&gt;</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> {</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> builder.ClearProviders();</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 configuration = <span class="keyword">new</span> LoggerConfiguration()</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> .MinimumLevel</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> .Verbose();</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> </div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> configurationAction?.Invoke(configuration);</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> configuration</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> .Enrich.FromLogContext()</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> .WriteTo</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> .Async(sinkConfiguration =&gt;</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> {</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> var <span class="keyword">template</span> = <span class="stringliteral">&quot;[{Timestamp:HH:mm:ss}] {Level:w3}: {SourceContext:l} (&quot;</span></div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> + SerilogContextHelper.Template</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> + <span class="stringliteral">&quot;){NewLine} {Message:lj}{NewLine}{Exception}&quot;</span>;</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> </div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keywordflow">if</span> (!((internalConfiguration?.UsingSystemD ?? <span class="keyword">false</span>) &amp;&amp; !(fileLoggingConfiguration?.Disable ?? <span class="keyword">false</span>)))</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> sinkConfiguration.Console(outputTemplate: <span class="keyword">template</span>, formatProvider: CultureInfo.InvariantCulture);</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> sinkConfigurationAction?.Invoke(sinkConfiguration);</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> });</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> </div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keywordflow">if</span> (elasticsearchSinkOptions != <span class="keyword">null</span>)</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> configuration.WriteTo.Elasticsearch(elasticsearchSinkOptions);</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> </div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> builder.AddSerilog(configuration.CreateLogger(), <span class="keyword">true</span>);</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordflow">if</span> (Debugger.IsAttached)</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> builder.AddDebug();</div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keywordflow">if</span> (<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ab8772f06fd0e560d968a76dca664aa69">additionalLoggerProvider</a> != <span class="keyword">null</span>)</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> builder.Services.TryAddEnumerable(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ab8772f06fd0e560d968a76dca664aa69">additionalLoggerProvider</a>);</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> });</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> }</div>
</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> </div>
<div class="foldopen" id="foldopen00230" data-start="{" data-end="}">
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a2b315cd2340acaf3254ebe6672d16321"> 230</a></span> <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a2b315cd2340acaf3254ebe6672d16321">AddHub&lt;THub, THubMethods&gt;</a>(<span class="keyword">this</span> IServiceCollection services)</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> where THub : <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_connection_mapping_hub.html">ConnectionMappingHub&lt;THub, THubMethods&gt;</a></div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> where THubMethods : <span class="keyword">class</span></div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> {</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> ArgumentNullException.ThrowIfNull(services);</div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> </div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> services.TryAddSingleton(typeof(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_comprehensive_hub_context.html">ComprehensiveHubContext&lt;,&gt;</a>));</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> services.AddSingleton&lt;<a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_i_connection_mapped_hub_context.html">IConnectionMappedHubContext&lt;THub, THubMethods&gt;</a>&gt;(provider =&gt; provider.GetRequiredService&lt;<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_comprehensive_hub_context.html">ComprehensiveHubContext&lt;THub, THubMethods&gt;</a>&gt;());</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> services.AddSingleton&lt;<a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_i_hub_connection_mapper.html">IHubConnectionMapper&lt;THub, THubMethods&gt;</a>&gt;(provider =&gt; provider.GetRequiredService&lt;<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_comprehensive_hub_context.html">ComprehensiveHubContext&lt;THub, THubMethods&gt;</a>&gt;());</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> }</div>
</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
<div class="foldopen" id="foldopen00244" data-start="{" data-end="}">
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a45e6f284e032b7cf5db819951915529b"> 244</a></span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a45e6f284e032b7cf5db819951915529b">UseDefaultServices</a>()</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> {</div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> UseChatProviderFactory&lt;ProviderFactory&gt;();</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> UseGitHubServiceFactory&lt;GitHubServiceFactory&gt;();</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> UseFileDownloader&lt;FileDownloader&gt;();</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> }</div>
</div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> }</div>
</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span>}</div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_file_logging_configuration_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_file_logging_configuration.html">Tgstation.Server.Host.Configuration.FileLoggingConfiguration</a></div><div class="ttdoc">File logging configuration options.</div><div class="ttdef"><b>Definition</b> <a href="_file_logging_configuration_8cs_source.html#l00015">FileLoggingConfiguration.cs:16</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_general_configuration_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_general_configuration.html">Tgstation.Server.Host.Configuration.GeneralConfiguration</a></div><div class="ttdoc">General configuration options.</div><div class="ttdef"><b>Definition</b> <a href="_general_configuration_8cs_source.html#l00022">GeneralConfiguration.cs:23</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_general_configuration_html_a04dc43bd8ff33f4a8a791f750f7eb1d9"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_general_configuration.html#a04dc43bd8ff33f4a8a791f750f7eb1d9">Tgstation.Server.Host.Configuration.GeneralConfiguration.Section</a></div><div class="ttdeci">const string Section</div><div class="ttdoc">The key for the Microsoft.Extensions.Configuration.IConfigurationSection the GeneralConfiguration res...</div><div class="ttdef"><b>Definition</b> <a href="_general_configuration_8cs_source.html#l00027">GeneralConfiguration.cs:27</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_internal_configuration_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_configuration_1_1_internal_configuration.html">Tgstation.Server.Host.Configuration.InternalConfiguration</a></div><div class="ttdoc">Unstable configuration options used internally by TGS.</div><div class="ttdef"><b>Definition</b> <a href="_internal_configuration_8cs_source.html#l00006">InternalConfiguration.cs:7</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions</a></div><div class="ttdoc">Extensions for IServiceCollection.</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00026">ServiceCollectionExtensions.cs:27</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a1d772a35a4564cb6ef773e9748d423c6"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a1d772a35a4564cb6ef773e9748d423c6">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.UseAdditionalLoggerProvider&lt; TLoggerProvider &gt;</a></div><div class="ttdeci">static void UseAdditionalLoggerProvider&lt; TLoggerProvider &gt;()</div><div class="ttdoc">Add an additional ILoggerProvider to IServiceCollections that call SetupLogging(IServiceCollection,...</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00119">ServiceCollectionExtensions.cs:119</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a2b315cd2340acaf3254ebe6672d16321"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a2b315cd2340acaf3254ebe6672d16321">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.AddHub&lt; THub, THubMethods &gt;</a></div><div class="ttdeci">static void AddHub&lt; THub, THubMethods &gt;(this IServiceCollection services)</div><div class="ttdoc">Attempt to add the given THub to services.</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00230">ServiceCollectionExtensions.cs:230</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a45e6f284e032b7cf5db819951915529b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a45e6f284e032b7cf5db819951915529b">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.UseDefaultServices</a></div><div class="ttdeci">static void UseDefaultServices()</div><div class="ttdoc">Set the modifiable services to their default types.</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00244">ServiceCollectionExtensions.cs:244</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a47937ae7bd20d9b7cc5699cce51cb8ae"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a47937ae7bd20d9b7cc5699cce51cb8ae">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.UseStandardConfig&lt; TConfig &gt;</a></div><div class="ttdeci">static IServiceCollection UseStandardConfig&lt; TConfig &gt;(this IServiceCollection serviceCollection, IConfiguration configuration)</div><div class="ttdoc">Add a standard TConfig binding.</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00146">ServiceCollectionExtensions.cs:146</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a47faaef515111935b2aa423d80750991"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a47faaef515111935b2aa423d80750991">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.fileDownloaderType</a></div><div class="ttdeci">static ? Type fileDownloaderType</div><div class="ttdoc">The IFileDownloader implementation used in calls to AddFileDownloader(IServiceCollection).</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00041">ServiceCollectionExtensions.cs:41</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a593922ee477110eeef84e5e54c1dbd8c"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a593922ee477110eeef84e5e54c1dbd8c">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.UseChatProviderFactory&lt; TProviderFactory &gt;</a></div><div class="ttdeci">static void UseChatProviderFactory&lt; TProviderFactory &gt;()</div><div class="ttdoc">Change the Type used as an implementation for calls to AddChatProviderFactory(IServiceCollection).</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00060">ServiceCollectionExtensions.cs:60</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a62ba81ab02c824cc6242178086ab38d2"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a62ba81ab02c824cc6242178086ab38d2">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.gitHubServiceFactoryType</a></div><div class="ttdeci">static ? Type gitHubServiceFactoryType</div><div class="ttdoc">The IGitHubServiceFactory implementation used in calls to AddGitHub(IServiceCollection).</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00036">ServiceCollectionExtensions.cs:36</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a681e4d7a5cf9cb10a12c9796245e78a6"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a681e4d7a5cf9cb10a12c9796245e78a6">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.AddFileDownloader</a></div><div class="ttdeci">static IServiceCollection AddFileDownloader(this IServiceCollection serviceCollection)</div><div class="ttdoc">Adds a IFileDownloader implementation to the given serviceCollection .</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00091">ServiceCollectionExtensions.cs:91</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a91b53c4e2779791d7f7c397e4fdb424d"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a91b53c4e2779791d7f7c397e4fdb424d">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.AddChatProviderFactory</a></div><div class="ttdeci">static IServiceCollection AddChatProviderFactory(this IServiceCollection serviceCollection)</div><div class="ttdoc">Adds a IProviderFactory implementation to the given serviceCollection .</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00132">ServiceCollectionExtensions.cs:132</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a93806b1bfd1d8b4e4c5cae3a6aca88b9"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a93806b1bfd1d8b4e4c5cae3a6aca88b9">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.ServiceCollectionExtensions</a></div><div class="ttdeci">static ServiceCollectionExtensions()</div><div class="ttdoc">Initializes static members of the ServiceCollectionExtensions class.</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00051">ServiceCollectionExtensions.cs:51</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_a9ab698d8cc99e507d2aca948e8e7806e"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#a9ab698d8cc99e507d2aca948e8e7806e">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.AddGitHub</a></div><div class="ttdeci">static IServiceCollection AddGitHub(this IServiceCollection serviceCollection)</div><div class="ttdoc">Adds a IGitHubServiceFactory implementation to the given serviceCollection .</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00105">ServiceCollectionExtensions.cs:105</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_aa5b74f413fe63602423419c04370b959"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#aa5b74f413fe63602423419c04370b959">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.SetupLogging</a></div><div class="ttdeci">static IServiceCollection SetupLogging(this IServiceCollection serviceCollection, Action&lt; LoggerConfiguration &gt; configurationAction, Action&lt; LoggerSinkConfiguration &gt;? sinkConfigurationAction=null, ElasticsearchSinkOptions? elasticsearchSinkOptions=null, InternalConfiguration? internalConfiguration=null, FileLoggingConfiguration? fileLoggingConfiguration=null)</div><div class="ttdoc">Clear previous providers and configure logging.</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00176">ServiceCollectionExtensions.cs:176</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_aab434a6c90b6e9b3167c33c5a3bb5a16"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#aab434a6c90b6e9b3167c33c5a3bb5a16">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.chatProviderFactoryType</a></div><div class="ttdeci">static ? Type chatProviderFactoryType</div><div class="ttdoc">The IProviderFactory implementation used in calls to AddChatProviderFactory(IServiceCollection).</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00031">ServiceCollectionExtensions.cs:31</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_ab8772f06fd0e560d968a76dca664aa69"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ab8772f06fd0e560d968a76dca664aa69">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.additionalLoggerProvider</a></div><div class="ttdeci">static ? ServiceDescriptor additionalLoggerProvider</div><div class="ttdoc">A ServiceDescriptor for an additional ILoggerProvider to use.</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00046">ServiceCollectionExtensions.cs:46</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_ac9c5c691827870d86c0ba5fc84412d48"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ac9c5c691827870d86c0ba5fc84412d48">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.UseFileDownloader&lt; TFileDownloader &gt;</a></div><div class="ttdeci">static void UseFileDownloader&lt; TFileDownloader &gt;()</div><div class="ttdoc">Change the Type used as an implementation for calls to AddGitHub(IServiceCollection).</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00080">ServiceCollectionExtensions.cs:80</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions_html_ad4a013fe169c7e7b5013c9d7fd5fc33d"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_extensions_1_1_service_collection_extensions.html#ad4a013fe169c7e7b5013c9d7fd5fc33d">Tgstation.Server.Host.Extensions.ServiceCollectionExtensions.UseGitHubServiceFactory&lt; TGitHubServiceFactory &gt;</a></div><div class="ttdeci">static void UseGitHubServiceFactory&lt; TGitHubServiceFactory &gt;()</div><div class="ttdoc">Change the Type used as an implementation for calls to AddGitHub(IServiceCollection).</div><div class="ttdef"><b>Definition</b> <a href="_service_collection_extensions_8cs_source.html#l00070">ServiceCollectionExtensions.cs:70</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_git_hub_client_factory_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_git_hub_client_factory.html">Tgstation.Server.Host.Utils.GitHub.GitHubClientFactory</a></div><div class="ttdef"><b>Definition</b> <a href="_git_hub_client_factory_8cs_source.html#l00025">GitHubClientFactory.cs:26</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_comprehensive_hub_context_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_comprehensive_hub_context.html">Tgstation.Server.Host.Utils.SignalR.ComprehensiveHubContext</a></div><div class="ttdoc">An implementation of IHubContext&lt;THub&gt; with User connection ID mapping.</div><div class="ttdef"><b>Definition</b> <a href="_comprehensive_hub_context_8cs_source.html#l00021">ComprehensiveHubContext.cs:24</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_connection_mapping_hub_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_connection_mapping_hub.html">Tgstation.Server.Host.Utils.SignalR.ConnectionMappingHub</a></div><div class="ttdoc">Base class for Hub&lt;T&gt;s that want to map their connection IDs to Models.PermissionSets.</div><div class="ttdef"><b>Definition</b> <a href="_connection_mapping_hub_8cs_source.html#l00017">ConnectionMappingHub.cs:20</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_components_1_1_chat_1_1_providers_1_1_i_provider_factory_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_chat_1_1_providers_1_1_i_provider_factory.html">Tgstation.Server.Host.Components.Chat.Providers.IProviderFactory</a></div><div class="ttdoc">Factory for IProviders.</div><div class="ttdef"><b>Definition</b> <a href="_i_provider_factory_8cs_source.html#l00008">IProviderFactory.cs:9</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_i_o_1_1_i_file_downloader_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_i_o_1_1_i_file_downloader.html">Tgstation.Server.Host.IO.IFileDownloader</a></div><div class="ttdoc">Downloads files.</div><div class="ttdef"><b>Definition</b> <a href="_i_file_downloader_8cs_source.html#l00008">IFileDownloader.cs:9</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_i_git_hub_client_factory_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_i_git_hub_client_factory.html">Tgstation.Server.Host.Utils.GitHub.IGitHubClientFactory</a></div><div class="ttdoc">For creating IGitHubClients.</div><div class="ttdef"><b>Definition</b> <a href="_i_git_hub_client_factory_8cs_source.html#l00011">IGitHubClientFactory.cs:12</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_i_git_hub_service_factory_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_1_1_i_git_hub_service_factory.html">Tgstation.Server.Host.Utils.GitHub.IGitHubServiceFactory</a></div><div class="ttdoc">Factory for IGitHubServices.</div><div class="ttdef"><b>Definition</b> <a href="_i_git_hub_service_factory_8cs_source.html#l00009">IGitHubServiceFactory.cs:10</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_i_connection_mapped_hub_context_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_i_connection_mapped_hub_context.html">Tgstation.Server.Host.Utils.SignalR.IConnectionMappedHubContext</a></div><div class="ttdoc">A IHubContext&lt;THub&gt; that maps Users to their connection IDs.</div><div class="ttdef"><b>Definition</b> <a href="_i_connection_mapped_hub_context_8cs_source.html#l00018">IConnectionMappedHubContext.cs:21</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_i_hub_connection_mapper_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_1_1_i_hub_connection_mapper.html">Tgstation.Server.Host.Utils.SignalR.IHubConnectionMapper</a></div><div class="ttdoc">Handles mapping connection IDs to Users for a given THub .</div><div class="ttdef"><b>Definition</b> <a href="_i_hub_connection_mapper_8cs_source.html#l00016">IHubConnectionMapper.cs:19</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_chat_1_1_providers_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_chat_1_1_providers.html">Tgstation.Server.Host.Components.Chat.Providers</a></div><div class="ttdef"><b>Definition</b> <a href="_discord_forwarding_responder_8cs_source.html#l00009">DiscordForwardingResponder.cs:10</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_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_i_o_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_i_o.html">Tgstation.Server.Host.IO</a></div><div class="ttdef"><b>Definition</b> <a href="_buffered_file_stream_provider_8cs_source.html#l00008">BufferedFileStreamProvider.cs:9</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_utils_1_1_git_hub.html">Tgstation.Server.Host.Utils.GitHub</a></div><div class="ttdef"><b>Definition</b> <a href="_git_hub_client_factory_8cs_source.html#l00022">GitHubClientFactory.cs:23</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_utils_1_1_signal_r.html">Tgstation.Server.Host.Utils.SignalR</a></div><div class="ttdef"><b>Definition</b> <a href="_comprehensive_hub_context_8cs_source.html#l00014">ComprehensiveHubContext.cs:15</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&#160;<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>