mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
174 lines
28 KiB
HTML
174 lines
28 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/GraphQL/Subscriptions/ShutdownAwareTopicEventReceiver.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_26e902284bbadb812716475690544a7b.html">GraphQL</a></li><li class="navelem"><a class="el" href="dir_50bbfaa68060a35660246f044d65fc40.html">Subscriptions</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle"><div class="title">ShutdownAwareTopicEventReceiver.cs</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="_shutdown_aware_topic_event_receiver_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="keyword">using </span>System;</div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="keyword">using </span>System.Collections.Concurrent;</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>HotChocolate.Execution;</div>
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">using </span>HotChocolate.Subscriptions;</div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">using </span>Microsoft.Extensions.Hosting;</div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions.html">Tgstation.Server.Host.GraphQL.Subscriptions</a></div>
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span>{</div>
|
|
<div class="foldopen" id="foldopen00014" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html"> 14</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_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html">ShutdownAwareTopicEventReceiver</a> : <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_i_topic_event_receiver.html">ITopicEventReceiver</a>, <a class="code hl_class" href="class_i_async_disposable.html">IAsyncDisposable</a></div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> {</div>
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a6a23e9d7cfc8f68c09bf98067a1cedd8"> 19</a></span> readonly IHostApplicationLifetime <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a6a23e9d7cfc8f68c09bf98067a1cedd8">hostApplicationLifetime</a>;</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#af3fa35429dbc3048e100724028683ad1"> 24</a></span> readonly HotChocolate.Subscriptions.ITopicEventReceiver <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#af3fa35429dbc3048e100724028683ad1">hotChocolateReceiver</a>;</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a633a41d560c49cc2c21629d50bcc6891"> 29</a></span> readonly ConcurrentBag<CancellationTokenRegistration> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a633a41d560c49cc2c21629d50bcc6891">registrations</a>;</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a32b647759cfd191660c1042ca6a16b6b"> 34</a></span> readonly ConcurrentBag<Task> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a32b647759cfd191660c1042ca6a16b6b">disposeTasks</a>;</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
|
|
<div class="foldopen" id="foldopen00041" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a2f5fd7e4afce0cc2c358d3450008a0b9"> 41</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a2f5fd7e4afce0cc2c358d3450008a0b9">ShutdownAwareTopicEventReceiver</a>(</div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> IHostApplicationLifetime <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a6a23e9d7cfc8f68c09bf98067a1cedd8">hostApplicationLifetime</a>,</div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> HotChocolate.Subscriptions.ITopicEventReceiver <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#af3fa35429dbc3048e100724028683ad1">hotChocolateReceiver</a>)</div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> {</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> this.hostApplicationLifetime = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a6a23e9d7cfc8f68c09bf98067a1cedd8">hostApplicationLifetime</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_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a6a23e9d7cfc8f68c09bf98067a1cedd8">hostApplicationLifetime</a>));</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> this.hotChocolateReceiver = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#af3fa35429dbc3048e100724028683ad1">hotChocolateReceiver</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_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#af3fa35429dbc3048e100724028683ad1">hotChocolateReceiver</a>));</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a633a41d560c49cc2c21629d50bcc6891">registrations</a> = <span class="keyword">new</span> ConcurrentBag<CancellationTokenRegistration>();</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a32b647759cfd191660c1042ca6a16b6b">disposeTasks</a> = <span class="keyword">new</span> ConcurrentBag<Task>();</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
|
|
<div class="foldopen" id="foldopen00053" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a9666d9cfcd6a3733ea6ddb6e160138c3"> 53</a></span> <span class="keyword">public</span> async ValueTask <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a9666d9cfcd6a3733ea6ddb6e160138c3">DisposeAsync</a>()</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> {</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">foreach</span> (var registration <span class="keywordflow">in</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a633a41d560c49cc2c21629d50bcc6891">registrations</a>)</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> {</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> registration.Dispose();</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> </div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> await Task.WhenAll(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a32b647759cfd191660c1042ca6a16b6b">disposeTasks</a>);</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a1e53357ef6571a411ff4ca9c44c08fb9"> 64</a></span> <span class="keyword">public</span> ValueTask<ISourceStream<TMessage>> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a1e53357ef6571a411ff4ca9c44c08fb9">SubscribeAsync<TMessage></a>(<span class="keywordtype">string</span> topicName, CancellationToken cancellationToken)</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> => WrapWithApplicationLifetimeCancellation(</div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#af3fa35429dbc3048e100724028683ad1">hotChocolateReceiver</a>.SubscribeAsync<TMessage>(topicName, cancellationToken));</div>
|
|
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
|
|
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a66cc31fba17262ecb325d4c7282449e6"> 69</a></span> <span class="keyword">public</span> ValueTask<ISourceStream<TMessage>> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a1e53357ef6571a411ff4ca9c44c08fb9">SubscribeAsync<TMessage></a>(<span class="keywordtype">string</span> topicName, <span class="keywordtype">int</span>? bufferCapacity, TopicBufferFullMode? bufferFullMode, CancellationToken cancellationToken)</div>
|
|
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> => WrapWithApplicationLifetimeCancellation(</div>
|
|
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#af3fa35429dbc3048e100724028683ad1">hotChocolateReceiver</a>.SubscribeAsync<TMessage>(topicName, bufferCapacity, bufferFullMode, cancellationToken));</div>
|
|
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
|
|
<div class="foldopen" id="foldopen00079" data-start="{" data-end="}">
|
|
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#aa015faf112339c7251affedc00ab896e"> 79</a></span> async ValueTask<ISourceStream<TMessage>> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#aa015faf112339c7251affedc00ab896e">WrapWithApplicationLifetimeCancellation<TMessage></a>(ValueTask<ISourceStream<TMessage>> sourceStreamTask)</div>
|
|
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> {</div>
|
|
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> var sourceStream = await sourceStreamTask;</div>
|
|
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a633a41d560c49cc2c21629d50bcc6891">registrations</a>.Add(</div>
|
|
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a6a23e9d7cfc8f68c09bf98067a1cedd8">hostApplicationLifetime</a>.ApplicationStopping.Register(</div>
|
|
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> () => <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a32b647759cfd191660c1042ca6a16b6b">disposeTasks</a>.Add(</div>
|
|
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> sourceStream.DisposeAsync().AsTask())));</div>
|
|
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keywordflow">return</span> sourceStream;</div>
|
|
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> }</div>
|
|
</div>
|
|
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span>}</div>
|
|
<div class="ttc" id="aclass_i_async_disposable_html"><div class="ttname"><a href="class_i_async_disposable.html">IAsyncDisposable</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html">Tgstation.Server.Host.GraphQL.Subscriptions.ShutdownAwareTopicEventReceiver</a></div><div class="ttdef"><b>Definition</b> <a href="_shutdown_aware_topic_event_receiver_8cs_source.html#l00014">ShutdownAwareTopicEventReceiver.cs:15</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver_html_a1e53357ef6571a411ff4ca9c44c08fb9"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a1e53357ef6571a411ff4ca9c44c08fb9">Tgstation.Server.Host.GraphQL.Subscriptions.ShutdownAwareTopicEventReceiver.SubscribeAsync< TMessage ></a></div><div class="ttdeci">ValueTask< ISourceStream< TMessage > > SubscribeAsync< TMessage >(string topicName, CancellationToken cancellationToken)</div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver_html_a2f5fd7e4afce0cc2c358d3450008a0b9"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a2f5fd7e4afce0cc2c358d3450008a0b9">Tgstation.Server.Host.GraphQL.Subscriptions.ShutdownAwareTopicEventReceiver.ShutdownAwareTopicEventReceiver</a></div><div class="ttdeci">ShutdownAwareTopicEventReceiver(IHostApplicationLifetime hostApplicationLifetime, HotChocolate.Subscriptions.ITopicEventReceiver hotChocolateReceiver)</div><div class="ttdoc">Initializes a new instance of the ShutdownAwareTopicEventReceiver class.</div><div class="ttdef"><b>Definition</b> <a href="_shutdown_aware_topic_event_receiver_8cs_source.html#l00041">ShutdownAwareTopicEventReceiver.cs:41</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver_html_a32b647759cfd191660c1042ca6a16b6b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a32b647759cfd191660c1042ca6a16b6b">Tgstation.Server.Host.GraphQL.Subscriptions.ShutdownAwareTopicEventReceiver.disposeTasks</a></div><div class="ttdeci">readonly ConcurrentBag< Task > disposeTasks</div><div class="ttdoc">A ConcurrentBag<T> of ValueTasks returned from initiating IAsyncDisposable.DisposeAsync calls on ISou...</div><div class="ttdef"><b>Definition</b> <a href="_shutdown_aware_topic_event_receiver_8cs_source.html#l00034">ShutdownAwareTopicEventReceiver.cs:34</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver_html_a633a41d560c49cc2c21629d50bcc6891"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a633a41d560c49cc2c21629d50bcc6891">Tgstation.Server.Host.GraphQL.Subscriptions.ShutdownAwareTopicEventReceiver.registrations</a></div><div class="ttdeci">readonly ConcurrentBag< CancellationTokenRegistration > registrations</div><div class="ttdoc">A ConcurrentBag<T> of CancellationTokenRegistrations that were created for this scope.</div><div class="ttdef"><b>Definition</b> <a href="_shutdown_aware_topic_event_receiver_8cs_source.html#l00029">ShutdownAwareTopicEventReceiver.cs:29</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver_html_a6a23e9d7cfc8f68c09bf98067a1cedd8"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a6a23e9d7cfc8f68c09bf98067a1cedd8">Tgstation.Server.Host.GraphQL.Subscriptions.ShutdownAwareTopicEventReceiver.hostApplicationLifetime</a></div><div class="ttdeci">readonly IHostApplicationLifetime hostApplicationLifetime</div><div class="ttdoc">The IHostApplicationLifetime for the ShutdownAwareTopicEventReceiver.</div><div class="ttdef"><b>Definition</b> <a href="_shutdown_aware_topic_event_receiver_8cs_source.html#l00019">ShutdownAwareTopicEventReceiver.cs:19</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver_html_a9666d9cfcd6a3733ea6ddb6e160138c3"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#a9666d9cfcd6a3733ea6ddb6e160138c3">Tgstation.Server.Host.GraphQL.Subscriptions.ShutdownAwareTopicEventReceiver.DisposeAsync</a></div><div class="ttdeci">async ValueTask DisposeAsync()</div><div class="ttdef"><b>Definition</b> <a href="_shutdown_aware_topic_event_receiver_8cs_source.html#l00053">ShutdownAwareTopicEventReceiver.cs:53</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver_html_aa015faf112339c7251affedc00ab896e"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#aa015faf112339c7251affedc00ab896e">Tgstation.Server.Host.GraphQL.Subscriptions.ShutdownAwareTopicEventReceiver.WrapWithApplicationLifetimeCancellation< TMessage ></a></div><div class="ttdeci">async ValueTask< ISourceStream< TMessage > > WrapWithApplicationLifetimeCancellation< TMessage >(ValueTask< ISourceStream< TMessage > > sourceStreamTask)</div><div class="ttdoc">Wraps a given sourceStreamTask with hostApplicationLifetime cancellation awareness.</div><div class="ttdef"><b>Definition</b> <a href="_shutdown_aware_topic_event_receiver_8cs_source.html#l00079">ShutdownAwareTopicEventReceiver.cs:79</a></div></div>
|
|
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver_html_af3fa35429dbc3048e100724028683ad1"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_shutdown_aware_topic_event_receiver.html#af3fa35429dbc3048e100724028683ad1">Tgstation.Server.Host.GraphQL.Subscriptions.ShutdownAwareTopicEventReceiver.hotChocolateReceiver</a></div><div class="ttdeci">readonly HotChocolate.Subscriptions.ITopicEventReceiver hotChocolateReceiver</div><div class="ttdoc">The wrapped HotChocolate.Subscriptions.ITopicEventReceiver.</div><div class="ttdef"><b>Definition</b> <a href="_shutdown_aware_topic_event_receiver_8cs_source.html#l00024">ShutdownAwareTopicEventReceiver.cs:24</a></div></div>
|
|
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_i_topic_event_receiver_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_1_1_i_topic_event_receiver.html">Tgstation.Server.Host.GraphQL.Subscriptions.ITopicEventReceiver</a></div><div class="ttdoc">Implementation of HotChocolate.Subscriptions.ITopicEventReceiver that works around the global::System...</div><div class="ttdef"><b>Definition</b> <a href="_i_topic_event_receiver_8cs_source.html#l00006">ITopicEventReceiver.cs:7</a></div></div>
|
|
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_graph_q_l_1_1_subscriptions.html">Tgstation.Server.Host.GraphQL.Subscriptions</a></div><div class="ttdef"><b>Definition</b> <a href="_i_topic_event_receiver_8cs_source.html#l00001">ITopicEventReceiver.cs:2</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>
|