mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
283 lines
72 KiB
HTML
283 lines
72 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>tgstation-server: src/Tgstation.Server.Host/Controllers/JobController.cs Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">tgstation-server<span id="projectnumber"> 6.19.3</span>
|
|
</div>
|
|
<div id="projectbrief">The /tg/station 13 server suite</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.8 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(document).ready(function() { init_codefold(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_34761767c1c3cd212f9d2f80ea0828a8.html">Tgstation.Server.Host</a></li><li class="navelem"><a class="el" href="dir_38cec1532eaed7aa1de0b599a76e3e80.html">Controllers</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">JobController.cs</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_job_controller_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="keyword">using </span>System;</div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="keyword">using </span>System.Linq;</div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">using </span>System.Threading;</div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="keyword">using </span>System.Threading.Tasks;</div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="keyword">using </span>Microsoft.AspNetCore.Mvc;</div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">using </span>Microsoft.EntityFrameworkCore;</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><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a>;</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a>;</div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response.html">Tgstation.Server.Api.Models.Response</a>;</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_components.html">Tgstation.Server.Host.Components</a>;</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results.html">Tgstation.Server.Host.Controllers.Results</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_database.html">Tgstation.Server.Host.Database</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_extensions.html">Tgstation.Server.Host.Extensions</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_jobs.html">Tgstation.Server.Host.Jobs</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_models.html">Tgstation.Server.Host.Models</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_security.html">Tgstation.Server.Host.Security</a>;</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</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="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers.html">Tgstation.Server.Host.Controllers</a></div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span>{</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> [Route(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a85c563262244bd21fe1bfa1ce5de6a1d">Jobs</a>)]</div>
|
|
<div class="foldopen" id="foldopen00028" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html"> 28</a></span> <span class="keyword">public</span> <span class="keyword">sealed</span> <span class="keyword">class </span><a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html">JobController</a> : <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_instance_required_controller.html">InstanceRequiredController</a></div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> {</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a6386df07802db9cdbf34ffe40b031921"> 33</a></span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">readonly</a> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager.html">IJobManager</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a6386df07802db9cdbf34ffe40b031921">jobManager</a>;</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="foldopen" id="foldopen00044" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a0b470517317d965bd0cd0e03d6db585b"> 44</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a0b470517317d965bd0cd0e03d6db585b">JobController</a>(</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_database_1_1_i_database_context.html">IDatabaseContext</a> databaseContext,</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_i_authentication_context.html">IAuthenticationContext</a> authenticationContext,</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ILogger<JobController></a> logger,</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_i_instance_manager.html">IInstanceManager</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_component_interfacing_controller.html#a9a2c4d46ba2467c16b22172a98f1ba35">instanceManager</a>,</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager.html">IJobManager</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a6386df07802db9cdbf34ffe40b031921">jobManager</a>,</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_i_api_headers_provider.html">IApiHeadersProvider</a> apiHeaders)</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> : <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">base</a>(</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> databaseContext,</div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> authenticationContext,</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> logger,</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_component_interfacing_controller.html#a9a2c4d46ba2467c16b22172a98f1ba35">instanceManager</a>,</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> apiHeaders)</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> {</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">this.jobManager</a> = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a6386df07802db9cdbf34ffe40b031921">jobManager</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ArgumentNullException</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">nameof</a>(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a6386df07802db9cdbf34ffe40b031921">jobManager</a>));</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">HttpGet</a>]</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">TgsAuthorize</a>]</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_paginated_response.html">PaginatedResponse<JobResponse></a>), 200)]</div>
|
|
<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_controllers_1_1_job_controller.html#a9d0c91a72d5005e121df0b8f4923a2ce"> 72</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ValueTask<IActionResult></a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a9d0c91a72d5005e121df0b8f4923a2ce">Read</a>([<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">FromQuery</a>] <span class="keywordtype">int</span>? <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">page</a>, [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">FromQuery</a>] <span class="keywordtype">int</span>? <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">pageSize</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">CancellationToken</a> cancellationToken)</div>
|
|
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#aa5437c0d931c3b25f8c37d4f235c2d5b"> 73</a></span> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">Paginated<Job, JobResponse></a>(</div>
|
|
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> () => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ValueTask</a>.FromResult<<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results_1_1_paginatable_result.html">PaginatableResult<Job></a>?>(</div>
|
|
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results_1_1_paginatable_result.html">PaginatableResult<Job></a>(</div>
|
|
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html">DatabaseContext</a></div>
|
|
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> .<a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html#a0c2b56fc85825a4e3cace2b2b1eb6f30">Jobs</a></div>
|
|
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.StartedBy)</div>
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.CancelledBy)</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Instance)</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> .Where(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Instance!.Id == <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance.html">Instance</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Id</a> && !<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.StoppedAt.HasValue)</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> .OrderByDescending(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.StartedAt))),</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1dc8ddf51fddc546edeb13540fe195a1">AddJobProgressResponseTransformer</a>,</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">page</a>,</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">pageSize</a>,</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> cancellationToken);</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
|
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">HttpGet</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a63077d90c7d1f0afef5045211241fb47">List</a>)]</div>
|
|
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">TgsAuthorize</a>]</div>
|
|
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_paginated_response.html">PaginatedResponse<JobResponse></a>), 200)]</div>
|
|
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819"> 99</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ValueTask<IActionResult></a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">List</a>([<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">FromQuery</a>] <span class="keywordtype">int</span>? <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">page</a>, [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">FromQuery</a>] <span class="keywordtype">int</span>? <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">pageSize</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">CancellationToken</a> cancellationToken)</div>
|
|
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#ad79588bdbe99b954677e7be028787f1b"> 100</a></span> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">Paginated<Job, JobResponse></a>(</div>
|
|
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> () => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ValueTask</a>.FromResult<<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results_1_1_paginatable_result.html">PaginatableResult<Job></a>?>(</div>
|
|
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results_1_1_paginatable_result.html">PaginatableResult<Job></a>(</div>
|
|
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html">DatabaseContext</a></div>
|
|
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> .<a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html#a0c2b56fc85825a4e3cace2b2b1eb6f30">Jobs</a></div>
|
|
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.StartedBy)</div>
|
|
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.CancelledBy)</div>
|
|
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Instance)</div>
|
|
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> .Where(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Instance!.Id == <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance.html">Instance</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Id</a>)</div>
|
|
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> .OrderByDescending(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.StartedAt))),</div>
|
|
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1dc8ddf51fddc546edeb13540fe195a1">AddJobProgressResponseTransformer</a>,</div>
|
|
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">page</a>,</div>
|
|
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">pageSize</a>,</div>
|
|
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> cancellationToken);</div>
|
|
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
|
|
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">HttpDelete</a>(<span class="stringliteral">"{id}"</span>)]</div>
|
|
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">TgsAuthorize</a>]</div>
|
|
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_job_response.html">JobResponse</a>), 202)]</div>
|
|
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">ErrorMessageResponse</a>), 404)]</div>
|
|
<div class="foldopen" id="foldopen00128" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a3f98fb2e4e46b96258839c5cfe3665c2"> 128</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">async</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ValueTask<IActionResult></a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a3f98fb2e4e46b96258839c5cfe3665c2">Delete</a>(<span class="keywordtype">long</span> <span class="keywordtype">id</span>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">CancellationToken</a> cancellationToken)</div>
|
|
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> {</div>
|
|
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="comment">// don't care if an instance post or not at this point</span></div>
|
|
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">var</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a> = <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">await</a> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html">DatabaseContext</a></div>
|
|
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> .<a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html#a0c2b56fc85825a4e3cace2b2b1eb6f30">Jobs</a></div>
|
|
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.StartedBy)</div>
|
|
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Instance)</div>
|
|
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> .Where(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Id == <span class="keywordtype">id</span> && <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Instance!.Id == <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance.html">Instance</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Id</a>)</div>
|
|
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> .FirstOrDefaultAsync(cancellationToken);</div>
|
|
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a> == <span class="keywordflow">default</span>)</div>
|
|
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keywordflow">return</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html#a30874703840788ecc629d91fc7e15a5f">NotFound</a>();</div>
|
|
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
|
|
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a>.StoppedAt != <span class="keyword">null</span>)</div>
|
|
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">return</span> Conflict(<span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">ErrorMessageResponse</a>(<a class="code hl_enumeration" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#a1a6adb59dd51244efabf4e548e7075c8">ErrorCode</a>.JobStopped));</div>
|
|
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div>
|
|
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a>.CancelRight.HasValue && <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a>.CancelRightsType.HasValue && (<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html">AuthenticationContext</a>.<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html#ade8aeb7dd0a0e480f6f89bd5973703c7">GetRight</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a>.CancelRightsType.Value) & <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a>.CancelRight.Value) == 0)</div>
|
|
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordflow">return</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">Forbid</a>();</div>
|
|
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
|
|
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">var</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">updatedJob</a> = <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">await</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a6386df07802db9cdbf34ffe40b031921">jobManager</a>.<a class="code hl_function" href="interface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager.html#a5760fe527065407b364e674d2a9eaf1d">CancelJob</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html">AuthenticationContext</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html#a0846ac9679599a99923987863edb0d5c">User</a>, <span class="keyword">false</span>, cancellationToken);</div>
|
|
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keywordflow">return</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">updatedJob</a> != <span class="keyword">null</span> ? Accepted(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">updatedJob</a>.ToApi()) : this.Gone();</div>
|
|
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
|
|
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">HttpGet</a>(<span class="stringliteral">"{id}"</span>)]</div>
|
|
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">TgsAuthorize</a>]</div>
|
|
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_job_response.html">JobResponse</a>), 200)]</div>
|
|
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> [<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ProducesResponseType</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">typeof</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">ErrorMessageResponse</a>), 404)]</div>
|
|
<div class="foldopen" id="foldopen00162" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a72699cfab0e237d11d66fa001fdd5180"> 162</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">async</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ValueTask<IActionResult></a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a72699cfab0e237d11d66fa001fdd5180">GetId</a>(<span class="keywordtype">long</span> <span class="keywordtype">id</span>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">CancellationToken</a> cancellationToken)</div>
|
|
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> {</div>
|
|
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">var</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a> = <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">await</a> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html">DatabaseContext</a></div>
|
|
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> .<a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html#a0c2b56fc85825a4e3cace2b2b1eb6f30">Jobs</a></div>
|
|
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> .Where(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Id == <span class="keywordtype">id</span> && <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Instance!.Id == <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance.html">Instance</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Id</a>)</div>
|
|
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.StartedBy)</div>
|
|
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.CancelledBy)</div>
|
|
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> .Include(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a> => <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">x</a>.Instance)</div>
|
|
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> .FirstOrDefaultAsync(cancellationToken);</div>
|
|
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a> == <span class="keywordflow">default</span>)</div>
|
|
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html#a30874703840788ecc629d91fc7e15a5f">NotFound</a>();</div>
|
|
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">var</a> api = <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">job</a>.ToApi();</div>
|
|
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a6386df07802db9cdbf34ffe40b031921">jobManager</a>.<a class="code hl_function" href="interface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager.html#a2fc945f03da3ef6cd356b8e8597e2b55">SetJobProgress</a>(api);</div>
|
|
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordflow">return</span> Json(api);</div>
|
|
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
|
|
<div class="foldopen" id="foldopen00183" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1dc8ddf51fddc546edeb13540fe195a1"> 183</a></span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ValueTask</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1dc8ddf51fddc546edeb13540fe195a1">AddJobProgressResponseTransformer</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_job_response.html">JobResponse</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">jobResponse</a>)</div>
|
|
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> {</div>
|
|
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a6386df07802db9cdbf34ffe40b031921">jobManager</a>.<a class="code hl_function" href="interface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager.html#a2fc945f03da3ef6cd356b8e8597e2b55">SetJobProgress</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">jobResponse</a>);</div>
|
|
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keywordflow">return</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">ValueTask</a>.CompletedTask;</div>
|
|
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span>}</div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id_html_ae31e478e1d338b37a14565df6fd58570"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Tgstation.Server.Api.Models.EntityId.Id</a></div><div class="ttdeci">virtual ? long Id</div><div class="ttdoc">The ID of the entity.</div><div class="ttdef"><b>Definition</b> <a href="_entity_id_8cs_source.html#l00014">EntityId.cs:14</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance.html">Tgstation.Server.Api.Models.Instance</a></div><div class="ttdoc">Metadata about a server instance.</div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_api_2_models_2_instance_8cs_source.html#l00008">Instance.cs:9</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_error_message_response.html">Tgstation.Server.Api.Models.Response.ErrorMessageResponse</a></div><div class="ttdoc">Represents an error message returned by the server.</div><div class="ttdef"><b>Definition</b> <a href="_error_message_response_8cs_source.html#l00011">ErrorMessageResponse.cs:12</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_job_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_job_response.html">Tgstation.Server.Api.Models.Response.JobResponse</a></div><div class="ttdoc">Represents a long running job on the server. Model is read-only, updates attempt to cancel the job.</div><div class="ttdef"><b>Definition</b> <a href="_job_response_8cs_source.html#l00006">JobResponse.cs:7</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_paginated_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_paginated_response.html">Tgstation.Server.Api.Models.Response.PaginatedResponse</a></div><div class="ttdoc">Represents a paginated set of models.</div><div class="ttdef"><b>Definition</b> <a href="_paginated_response_8cs_source.html#l00010">PaginatedResponse.cs:11</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Tgstation.Server.Api.Routes</a></div><div class="ttdoc">Routes to a server actions.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00008">Routes.cs:9</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html_a63077d90c7d1f0afef5045211241fb47"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a63077d90c7d1f0afef5045211241fb47">Tgstation.Server.Api.Routes.List</a></div><div class="ttdeci">const string List</div><div class="ttdoc">The postfix for list operations.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00113">Routes.cs:113</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html_a85c563262244bd21fe1bfa1ce5de6a1d"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a85c563262244bd21fe1bfa1ce5de6a1d">Tgstation.Server.Api.Routes.Jobs</a></div><div class="ttdeci">const string Jobs</div><div class="ttdoc">The jobs controller.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00103">Routes.cs:103</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller_html_a30874703840788ecc629d91fc7e15a5f"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_api_controller.html#a30874703840788ecc629d91fc7e15a5f">Tgstation.Server.Host.Controllers.ApiController.NotFound</a></div><div class="ttdeci">new NotFoundObjectResult NotFound()</div><div class="ttdoc">Generic 404 response.</div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_component_interfacing_controller_html_a9a2c4d46ba2467c16b22172a98f1ba35"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_component_interfacing_controller.html#a9a2c4d46ba2467c16b22172a98f1ba35">Tgstation.Server.Host.Controllers.ComponentInterfacingController.instanceManager</a></div><div class="ttdeci">readonly IInstanceManager instanceManager</div><div class="ttdoc">The IInstanceManager for the ComponentInterfacingController.</div><div class="ttdef"><b>Definition</b> <a href="_component_interfacing_controller_8cs_source.html#l00033">ComponentInterfacingController.cs:33</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_instance_required_controller_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_instance_required_controller.html">Tgstation.Server.Host.Controllers.InstanceRequiredController</a></div><div class="ttdoc">ComponentInterfacingController for operations that require an instance.</div><div class="ttdef"><b>Definition</b> <a href="_instance_required_controller_8cs_source.html#l00013">InstanceRequiredController.cs:14</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html">Tgstation.Server.Host.Controllers.JobController</a></div><div class="ttdoc">ApiController for Jobs.</div><div class="ttdef"><b>Definition</b> <a href="_job_controller_8cs_source.html#l00028">JobController.cs:29</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller_html_a0b470517317d965bd0cd0e03d6db585b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a0b470517317d965bd0cd0e03d6db585b">Tgstation.Server.Host.Controllers.JobController.JobController</a></div><div class="ttdeci">JobController(IDatabaseContext databaseContext, IAuthenticationContext authenticationContext, ILogger< JobController > logger, IInstanceManager instanceManager, IJobManager jobManager, IApiHeadersProvider apiHeaders)</div><div class="ttdoc">Initializes a new instance of the JobController class.</div><div class="ttdef"><b>Definition</b> <a href="_job_controller_8cs_source.html#l00044">JobController.cs:44</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller_html_a1b4822c391602d2e8125f9f757d58819"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1b4822c391602d2e8125f9f757d58819">Tgstation.Server.Host.Controllers.JobController.List</a></div><div class="ttdeci">ValueTask< IActionResult > List([FromQuery] int? page, [FromQuery] int? pageSize, CancellationToken cancellationToken)</div><div class="ttdoc">List all JobResponse for the instance in reverse creation order.</div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller_html_a1dc8ddf51fddc546edeb13540fe195a1"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a1dc8ddf51fddc546edeb13540fe195a1">Tgstation.Server.Host.Controllers.JobController.AddJobProgressResponseTransformer</a></div><div class="ttdeci">ValueTask AddJobProgressResponseTransformer(JobResponse jobResponse)</div><div class="ttdoc">Supplements JobResponse PaginatedResponse<TModel>s with their JobResponse.Progress.</div><div class="ttdef"><b>Definition</b> <a href="_job_controller_8cs_source.html#l00183">JobController.cs:183</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller_html_a3f98fb2e4e46b96258839c5cfe3665c2"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a3f98fb2e4e46b96258839c5cfe3665c2">Tgstation.Server.Host.Controllers.JobController.Delete</a></div><div class="ttdeci">async ValueTask< IActionResult > Delete(long id, CancellationToken cancellationToken)</div><div class="ttdoc">Cancel a running JobResponse.</div><div class="ttdef"><b>Definition</b> <a href="_job_controller_8cs_source.html#l00128">JobController.cs:128</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller_html_a6386df07802db9cdbf34ffe40b031921"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a6386df07802db9cdbf34ffe40b031921">Tgstation.Server.Host.Controllers.JobController.jobManager</a></div><div class="ttdeci">readonly IJobManager jobManager</div><div class="ttdoc">The IJobManager for the JobController.</div><div class="ttdef"><b>Definition</b> <a href="_job_controller_8cs_source.html#l00033">JobController.cs:33</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller_html_a72699cfab0e237d11d66fa001fdd5180"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a72699cfab0e237d11d66fa001fdd5180">Tgstation.Server.Host.Controllers.JobController.GetId</a></div><div class="ttdeci">async ValueTask< IActionResult > GetId(long id, CancellationToken cancellationToken)</div><div class="ttdoc">Get a specific JobResponse.</div><div class="ttdef"><b>Definition</b> <a href="_job_controller_8cs_source.html#l00162">JobController.cs:162</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller_html_a9d0c91a72d5005e121df0b8f4923a2ce"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_job_controller.html#a9d0c91a72d5005e121df0b8f4923a2ce">Tgstation.Server.Host.Controllers.JobController.Read</a></div><div class="ttdeci">ValueTask< IActionResult > Read([FromQuery] int? page, [FromQuery] int? pageSize, CancellationToken cancellationToken)</div><div class="ttdoc">Get active JobResponses for the instance.</div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results_1_1_paginatable_result_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results_1_1_paginatable_result.html">Tgstation.Server.Host.Controllers.Results.PaginatableResult</a></div><div class="ttdoc">Helper for returning paginated models.</div><div class="ttdef"><b>Definition</b> <a href="_paginatable_result_8cs_source.html#l00013">PaginatableResult.cs:14</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html">Tgstation.Server.Host.Database.DatabaseContext</a></div><div class="ttdoc">Backend abstract implementation of IDatabaseContext.</div><div class="ttdef"><b>Definition</b> <a href="_database_context_8cs_source.html#l00024">DatabaseContext.cs:25</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context_html_a0c2b56fc85825a4e3cace2b2b1eb6f30"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_database_1_1_database_context.html#a0c2b56fc85825a4e3cace2b2b1eb6f30">Tgstation.Server.Host.Database.DatabaseContext.Jobs</a></div><div class="ttdeci">DbSet< Job > Jobs</div><div class="ttdoc">The Jobs in the DatabaseContext.</div><div class="ttdef"><b>Definition</b> <a href="_database_context_8cs_source.html#l00079">DatabaseContext.cs:79</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html">Tgstation.Server.Host.Security.AuthenticationContext</a></div><div class="ttdef"><b>Definition</b> <a href="_authentication_context_8cs_source.html#l00010">AuthenticationContext.cs:11</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context_html_a0846ac9679599a99923987863edb0d5c"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html#a0846ac9679599a99923987863edb0d5c">Tgstation.Server.Host.Security.AuthenticationContext.User</a></div><div class="ttdeci">User User</div><div class="ttdoc">The authenticated user.</div><div class="ttdef"><b>Definition</b> <a href="_authentication_context_8cs_source.html#l00016">AuthenticationContext.cs:16</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context_html_ade8aeb7dd0a0e480f6f89bd5973703c7"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_security_1_1_authentication_context.html#ade8aeb7dd0a0e480f6f89bd5973703c7">Tgstation.Server.Host.Security.AuthenticationContext.GetRight</a></div><div class="ttdeci">ulong GetRight(RightsType rightsType)</div><div class="ttdoc">Get the value of a given rightsType .The value of rightsType . Note that if InstancePermissionSet is ...</div><div class="ttdef"><b>Definition</b> <a href="_authentication_context_8cs_source.html#l00103">AuthenticationContext.cs:103</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_components_1_1_i_instance_manager_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_components_1_1_i_instance_manager.html">Tgstation.Server.Host.Components.IInstanceManager</a></div><div class="ttdoc">For managing IInstances.</div><div class="ttdef"><b>Definition</b> <a href="_i_instance_manager_8cs_source.html#l00010">IInstanceManager.cs:11</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_database_1_1_i_database_context_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_database_1_1_i_database_context.html">Tgstation.Server.Host.Database.IDatabaseContext</a></div><div class="ttdoc">Represents the database.</div><div class="ttdef"><b>Definition</b> <a href="_i_database_context_8cs_source.html#l00016">IDatabaseContext.cs:17</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager.html">Tgstation.Server.Host.Jobs.IJobManager</a></div><div class="ttdoc">Manages the runtime of Jobs.</div><div class="ttdef"><b>Definition</b> <a href="_i_job_manager_8cs_source.html#l00012">IJobManager.cs:13</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager_html_a2fc945f03da3ef6cd356b8e8597e2b55"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager.html#a2fc945f03da3ef6cd356b8e8597e2b55">Tgstation.Server.Host.Jobs.IJobManager.SetJobProgress</a></div><div class="ttdeci">void SetJobProgress(JobResponse apiResponse)</div><div class="ttdoc">Set the JobResponse.Progress and JobResponse.Stage for a given apiResponse .</div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager_html_a5760fe527065407b364e674d2a9eaf1d"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_jobs_1_1_i_job_manager.html#a5760fe527065407b364e674d2a9eaf1d">Tgstation.Server.Host.Jobs.IJobManager.CancelJob</a></div><div class="ttdeci">ValueTask< Job?> CancelJob(Job job, User? user, bool blocking, CancellationToken cancellationToken)</div><div class="ttdoc">Cancels a give job .</div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_security_1_1_i_authentication_context_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_security_1_1_i_authentication_context.html">Tgstation.Server.Host.Security.IAuthenticationContext</a></div><div class="ttdoc">For creating and accessing authentication contexts.</div><div class="ttdef"><b>Definition</b> <a href="_i_authentication_context_8cs_source.html#l00011">IAuthenticationContext.cs:12</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_i_api_headers_provider_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_utils_1_1_i_api_headers_provider.html">Tgstation.Server.Host.Utils.IApiHeadersProvider</a></div><div class="ttdoc">Provides ApiHeaders.</div><div class="ttdef"><b>Definition</b> <a href="_i_api_headers_provider_8cs_source.html#l00008">IApiHeadersProvider.cs:9</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response.html">Tgstation.Server.Api.Models.Response</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_response_8cs_source.html#l00005">AdministrationResponse.cs:6</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_a1a6adb59dd51244efabf4e548e7075c8"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html#a1a6adb59dd51244efabf4e548e7075c8">Tgstation.Server.Api.Models.ErrorCode</a></div><div class="ttdeci">ErrorCode</div><div class="ttdoc">Types of Response.ErrorMessageResponses that the API may return.</div><div class="ttdef"><b>Definition</b> <a href="_error_code_8cs_source.html#l00011">ErrorCode.cs:12</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a></div><div class="ttdef"><b>Definition</b> <a href="_api_headers_8cs_source.html#l00019">ApiHeaders.cs:20</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_components_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_components.html">Tgstation.Server.Host.Components</a></div><div class="ttdef"><b>Definition</b> <a href="_channel_mapping_8cs_source.html#l00003">ChannelMapping.cs:4</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers_1_1_results.html">Tgstation.Server.Host.Controllers.Results</a></div><div class="ttdef"><b>Definition</b> <a href="_limited_stream_result_8cs_source.html#l00013">LimitedStreamResult.cs:14</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_controllers_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_controllers.html">Tgstation.Server.Host.Controllers</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_controller_8cs_source.html#l00026">AdministrationController.cs:27</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_database_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_database.html">Tgstation.Server.Host.Database</a></div><div class="ttdef"><b>Definition</b> <a href="_database_collection_8cs_source.html#l00009">DatabaseCollection.cs:10</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_jobs_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_jobs.html">Tgstation.Server.Host.Jobs</a></div><div class="ttdef"><b>Definition</b> <a href="_i_job_manager_8cs_source.html#l00007">IJobManager.cs:8</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_models_2_chat_bot_8cs_source.html#l00008">ChatBot.cs:9</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_security_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_security.html">Tgstation.Server.Host.Security</a></div><div class="ttdef"><b>Definition</b> <a href="_authentication_context_8cs_source.html#l00007">AuthenticationContext.cs:8</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_utils_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_utils.html">Tgstation.Server.Host.Utils</a></div><div class="ttdef"><b>Definition</b> <a href="_graph_q_l_git_lab_client_8cs_source.html#l00006">GraphQLGitLabClient.cs:7</a></div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|