mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
195 lines
34 KiB
HTML
195 lines
34 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/Components/Repository/GitRemoteFeaturesFactory.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_7a3fd032a1362a6005a1fc9227a8dd86.html">Components</a></li><li class="navelem"><a class="el" href="dir_5d46d0c3fd1cac5ce1ea23751ad25792.html">Repository</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">GitRemoteFeaturesFactory.cs</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_git_remote_features_factory_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> </div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">using </span>Microsoft.Extensions.Logging;</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><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a>;</div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</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="l00007" name="l00007"></a><span class="lineno"> 7</span> </div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository.html">Tgstation.Server.Host.Components.Repository</a></div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span>{</div>
|
|
<div class="foldopen" id="foldopen00011" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html"> 11</a></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_components_1_1_repository_1_1_git_remote_features_factory.html">GitRemoteFeaturesFactory</a> : <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_git_remote_features_factory.html">IGitRemoteFeaturesFactory</a></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> {</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#af11a56ad4b9a68a72610e00860665ede"> 16</a></span> readonly <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_components_1_1_repository_1_1_git_remote_features_factory.html#af11a56ad4b9a68a72610e00860665ede">gitHubServiceFactory</a>;</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a57810c84e93f72a073d92d185a0bfba5"> 21</a></span> readonly ILoggerFactory <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a57810c84e93f72a073d92d185a0bfba5">loggerFactory</a>;</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<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_components_1_1_repository_1_1_git_remote_features_factory.html#a590455e46a1b07cc20bbc598a9f70c48"> 26</a></span> readonly ILogger<GitRemoteFeaturesFactory> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a590455e46a1b07cc20bbc598a9f70c48">logger</a>;</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="foldopen" id="foldopen00034" data-start="{" data-end="}">
|
|
<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_components_1_1_repository_1_1_git_remote_features_factory.html#a73ce8033b14b9a7dea4225f7a9c7a808"> 34</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a73ce8033b14b9a7dea4225f7a9c7a808">GitRemoteFeaturesFactory</a>(</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <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_components_1_1_repository_1_1_git_remote_features_factory.html#af11a56ad4b9a68a72610e00860665ede">gitHubServiceFactory</a>,</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> ILoggerFactory <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a57810c84e93f72a073d92d185a0bfba5">loggerFactory</a>,</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> ILogger<GitRemoteFeaturesFactory> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a590455e46a1b07cc20bbc598a9f70c48">logger</a>)</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> {</div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> this.gitHubServiceFactory = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#af11a56ad4b9a68a72610e00860665ede">gitHubServiceFactory</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_components_1_1_repository_1_1_git_remote_features_factory.html#af11a56ad4b9a68a72610e00860665ede">gitHubServiceFactory</a>));</div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> this.loggerFactory = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a57810c84e93f72a073d92d185a0bfba5">loggerFactory</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_components_1_1_repository_1_1_git_remote_features_factory.html#a57810c84e93f72a073d92d185a0bfba5">loggerFactory</a>));</div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> this.logger = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a590455e46a1b07cc20bbc598a9f70c48">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_components_1_1_repository_1_1_git_remote_features_factory.html#a590455e46a1b07cc20bbc598a9f70c48">logger</a>));</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
|
|
<div class="foldopen" id="foldopen00045" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#ab73a7c2a4b8d0350263d37b77f4c5a11"> 45</a></span> <span class="keyword">public</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_git_remote_features.html">IGitRemoteFeatures</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#ab73a7c2a4b8d0350263d37b77f4c5a11">CreateGitRemoteFeatures</a>(<a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_repository.html">IRepository</a> repository)</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> {</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> ArgumentNullException.ThrowIfNull(repository);</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keywordflow">return</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#ab73a7c2a4b8d0350263d37b77f4c5a11">CreateGitRemoteFeatures</a>(repository.<a class="code hl_property" href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_repository.html#ae8ac73c5a625a5c20ee4b25dcb3b04ba">Origin</a>);</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
|
|
<div class="foldopen" id="foldopen00052" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a4002fc4acc4cdeca93c97339d0498f0a"> 52</a></span> <span class="keyword">public</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_git_remote_features.html">IGitRemoteFeatures</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a4002fc4acc4cdeca93c97339d0498f0a">CreateGitRemoteFeatures</a>(Uri origin)</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> {</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> ArgumentNullException.ThrowIfNull(origin);</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> var remoteGitProvider = <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a2ff0a4312b655dab33456d56e371775e">ParseRemoteGitProviderFromOrigin</a>(origin);</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keywordflow">return</span> remoteGitProvider <span class="keywordflow">switch</span></div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> {</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> RemoteGitProvider.GitHub => <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_hub_remote_features.html">GitHubRemoteFeatures</a>(</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#af11a56ad4b9a68a72610e00860665ede">gitHubServiceFactory</a>,</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a57810c84e93f72a073d92d185a0bfba5">loggerFactory</a>.CreateLogger<<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_hub_remote_features.html">GitHubRemoteFeatures</a>>(),</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> origin),</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> RemoteGitProvider.GitLab => <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html">GitLabRemoteFeatures</a>(</div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a57810c84e93f72a073d92d185a0bfba5">loggerFactory</a>.CreateLogger<<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html">GitLabRemoteFeatures</a>>(),</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> origin),</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> RemoteGitProvider.Unknown => <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_default_git_remote_features.html">DefaultGitRemoteFeatures</a>(),</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> _ => <span class="keywordflow">throw</span> <span class="keyword">new</span> InvalidOperationException($<span class="stringliteral">"Unknown RemoteGitProvider: {remoteGitProvider}!"</span>),</div>
|
|
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> };</div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
|
|
<div class="foldopen" id="foldopen00072" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a2ff0a4312b655dab33456d56e371775e"> 72</a></span> <span class="keyword">public</span> <a class="code hl_enumeration" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#aaff5188f30ee5c04c081684eb9672f17">RemoteGitProvider</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a2ff0a4312b655dab33456d56e371775e">ParseRemoteGitProviderFromOrigin</a>(Uri origin)</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> {</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> ArgumentNullException.ThrowIfNull(origin);</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keywordflow">switch</span> (origin.Host.ToUpperInvariant())</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> <span class="keywordflow">case</span> <span class="stringliteral">"GITHUB.COM"</span>:</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">case</span> <span class="stringliteral">"WWW.GITHUB.COM"</span>:</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordflow">case</span> <span class="stringliteral">"GIT.GITHUB.COM"</span>:</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">return</span> <a class="code hl_enumeration" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#aaff5188f30ee5c04c081684eb9672f17">RemoteGitProvider</a>.GitHub;</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">case</span> <span class="stringliteral">"GITLAB.COM"</span>:</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordflow">case</span> <span class="stringliteral">"WWW.GITLAB.COM"</span>:</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">case</span> <span class="stringliteral">"GIT.GITLAB.COM"</span>:</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">return</span> <a class="code hl_enumeration" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#aaff5188f30ee5c04c081684eb9672f17">RemoteGitProvider</a>.GitLab;</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">default</span>:</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a590455e46a1b07cc20bbc598a9f70c48">logger</a>.LogDebug(<span class="stringliteral">"Unknown git remote: {origin}"</span>, origin);</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordflow">return</span> <a class="code hl_enumeration" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#aaff5188f30ee5c04c081684eb9672f17">RemoteGitProvider</a>.Unknown;</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> }</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>
|
|
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span>}</div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_default_git_remote_features_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_default_git_remote_features.html">Tgstation.Server.Host.Components.Repository.DefaultGitRemoteFeatures</a></div><div class="ttdoc">The IGitRemoteFeatures used for unknown providers.</div><div class="ttdef"><b>Definition</b> <a href="_default_git_remote_features_8cs_source.html#l00012">DefaultGitRemoteFeatures.cs:13</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_hub_remote_features_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_hub_remote_features.html">Tgstation.Server.Host.Components.Repository.GitHubRemoteFeatures</a></div><div class="ttdoc">GitHub IGitRemoteFeatures.</div><div class="ttdef"><b>Definition</b> <a href="_git_hub_remote_features_8cs_source.html#l00017">GitHubRemoteFeatures.cs:18</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_lab_remote_features.html">Tgstation.Server.Host.Components.Repository.GitLabRemoteFeatures</a></div><div class="ttdoc">GitLab IGitRemoteFeatures.</div><div class="ttdef"><b>Definition</b> <a href="_git_lab_remote_features_8cs_source.html#l00018">GitLabRemoteFeatures.cs:19</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesFactory</a></div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_factory_8cs_source.html#l00011">GitRemoteFeaturesFactory.cs:12</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory_html_a2ff0a4312b655dab33456d56e371775e"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a2ff0a4312b655dab33456d56e371775e">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesFactory.ParseRemoteGitProviderFromOrigin</a></div><div class="ttdeci">RemoteGitProvider ParseRemoteGitProviderFromOrigin(Uri origin)</div><div class="ttdoc">Gets the RemoteGitProvider for a given origin .The RemoteGitProvider of the origin .</div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_factory_8cs_source.html#l00072">GitRemoteFeaturesFactory.cs:72</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory_html_a4002fc4acc4cdeca93c97339d0498f0a"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a4002fc4acc4cdeca93c97339d0498f0a">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesFactory.CreateGitRemoteFeatures</a></div><div class="ttdeci">IGitRemoteFeatures CreateGitRemoteFeatures(Uri origin)</div><div class="ttdoc">Create the IGitRemoteFeatures for a given origin .A new IGitRemoteFeatures instance.</div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_factory_8cs_source.html#l00052">GitRemoteFeaturesFactory.cs:52</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory_html_a57810c84e93f72a073d92d185a0bfba5"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a57810c84e93f72a073d92d185a0bfba5">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesFactory.loggerFactory</a></div><div class="ttdeci">readonly ILoggerFactory loggerFactory</div><div class="ttdoc">The ILoggerFactory for the GitRemoteFeaturesFactory.</div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_factory_8cs_source.html#l00021">GitRemoteFeaturesFactory.cs:21</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory_html_a590455e46a1b07cc20bbc598a9f70c48"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a590455e46a1b07cc20bbc598a9f70c48">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesFactory.logger</a></div><div class="ttdeci">readonly ILogger< GitRemoteFeaturesFactory > logger</div><div class="ttdoc">The ILogger for the GitRemoteFeaturesFactory.</div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_factory_8cs_source.html#l00026">GitRemoteFeaturesFactory.cs:26</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory_html_a73ce8033b14b9a7dea4225f7a9c7a808"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#a73ce8033b14b9a7dea4225f7a9c7a808">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesFactory.GitRemoteFeaturesFactory</a></div><div class="ttdeci">GitRemoteFeaturesFactory(IGitHubServiceFactory gitHubServiceFactory, ILoggerFactory loggerFactory, ILogger< GitRemoteFeaturesFactory > logger)</div><div class="ttdoc">Initializes a new instance of the GitRemoteFeaturesFactory class.</div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_factory_8cs_source.html#l00034">GitRemoteFeaturesFactory.cs:34</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory_html_ab73a7c2a4b8d0350263d37b77f4c5a11"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#ab73a7c2a4b8d0350263d37b77f4c5a11">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesFactory.CreateGitRemoteFeatures</a></div><div class="ttdeci">IGitRemoteFeatures CreateGitRemoteFeatures(IRepository repository)</div><div class="ttdoc">Create the IGitRemoteFeatures for a given repository .A new IGitRemoteFeatures instance.</div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_factory_8cs_source.html#l00045">GitRemoteFeaturesFactory.cs:45</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory_html_af11a56ad4b9a68a72610e00860665ede"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_git_remote_features_factory.html#af11a56ad4b9a68a72610e00860665ede">Tgstation.Server.Host.Components.Repository.GitRemoteFeaturesFactory.gitHubServiceFactory</a></div><div class="ttdeci">readonly IGitHubServiceFactory gitHubServiceFactory</div><div class="ttdoc">The IGitHubServiceFactory for the GitRemoteFeaturesFactory.</div><div class="ttdef"><b>Definition</b> <a href="_git_remote_features_factory_8cs_source.html#l00016">GitRemoteFeaturesFactory.cs:16</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_git_remote_features_factory_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_git_remote_features_factory.html">Tgstation.Server.Host.Components.Repository.IGitRemoteFeaturesFactory</a></div><div class="ttdoc">Factory for creating IGitRemoteFeatures.</div><div class="ttdef"><b>Definition</b> <a href="_i_git_remote_features_factory_8cs_source.html#l00010">IGitRemoteFeaturesFactory.cs:11</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_git_remote_features_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_git_remote_features.html">Tgstation.Server.Host.Components.Repository.IGitRemoteFeatures</a></div><div class="ttdoc">Provides features for remote git services.</div><div class="ttdef"><b>Definition</b> <a href="_i_git_remote_features_8cs_source.html#l00009">IGitRemoteFeatures.cs:10</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_repository_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_repository.html">Tgstation.Server.Host.Components.Repository.IRepository</a></div><div class="ttdoc">Represents an on-disk git repository.</div><div class="ttdef"><b>Definition</b> <a href="_i_repository_8cs_source.html#l00013">IRepository.cs:14</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_repository_html_ae8ac73c5a625a5c20ee4b25dcb3b04ba"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_1_1_i_repository.html#ae8ac73c5a625a5c20ee4b25dcb3b04ba">Tgstation.Server.Host.Components.Repository.IRepository.Origin</a></div><div class="ttdeci">Uri Origin</div><div class="ttdoc">The current origin remote the IRepository is using.</div><div class="ttdef"><b>Definition</b> <a href="_i_repository_8cs_source.html#l00033">IRepository.cs:33</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="anamespace_tgstation_1_1_server_1_1_api_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_api_2_models_2_chat_channel_8cs_source.html#l00005">ChatChannel.cs:6</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_html_aaff5188f30ee5c04c081684eb9672f17"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#aaff5188f30ee5c04c081684eb9672f17">Tgstation.Server.Api.Models.RemoteGitProvider</a></div><div class="ttdeci">RemoteGitProvider</div><div class="ttdoc">Indicates the remote git host.</div><div class="ttdef"><b>Definition</b> <a href="_remote_git_provider_8cs_source.html#l00006">RemoteGitProvider.cs:7</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_components_1_1_repository.html">Tgstation.Server.Host.Components.Repository</a></div><div class="ttdef"><b>Definition</b> <a href="_default_git_remote_features_8cs_source.html#l00007">DefaultGitRemoteFeatures.cs:8</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><!-- 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>
|