Add files via upload

Updated ExecuteController Description.
This commit is contained in:
Dultus 2023-04-06 15:40:29 +02:00 committed by GitHub
parent 5fe91507f7
commit 1372214768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 14 deletions

View file

@ -115,14 +115,14 @@
<a id="Discord_Controller_EventController_ExecuteController_" data-uid="Discord.Controller.EventController.ExecuteController*"></a> <a id="Discord_Controller_EventController_ExecuteController_" data-uid="Discord.Controller.EventController.ExecuteController*"></a>
<h4 id="Discord_Controller_EventController_ExecuteController__1_System_String___System_String_System_Object_" data-uid="Discord.Controller.EventController.ExecuteController``1(System.String[],System.String,System.Object)">ExecuteController&lt;T&gt;(string[], string, object)</h4> <h4 id="Discord_Controller_EventController_ExecuteController__1_System_String___System_String_System_Object_System_Reflection_Assembly_" data-uid="Discord.Controller.EventController.ExecuteController``1(System.String[],System.String,System.Object,System.Reflection.Assembly)">ExecuteController&lt;T&gt;(string[], string, object, Assembly)</h4>
<div class="markdown level1 summary"><p>Method To be placed in a separate Class that will be passed into the <a class="xref" href="Discord.Controller.EventController.html#Discord_Controller_EventController_InvokeEventControllerClass__2_System_String_System_Object_">InvokeEventControllerClass&lt;CLASS, ENUM&gt;(string, object)</a> <div class="markdown level1 summary"><p>Method To be placed in a separate Class that will be passed into the <a class="xref" href="Discord.Controller.EventController.html#Discord_Controller_EventController_InvokeEventControllerClass__2_System_String_System_Object_">InvokeEventControllerClass&lt;CLASS, ENUM&gt;(string, object)</a>
For the EventControllerAttribute you have to pass the enum type e.g. of all categories and pass the enum value for a specific category. Finally you have to execute the controller and use the category's enum for the generic.</p> For the EventControllerAttribute you have to pass the enum type e.g. of all categories and pass the enum value for a specific category. Finally you have to execute the controller and use the category's enum for the generic.</p>
</div> </div>
<div class="markdown level1 conceptual"></div> <div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5> <h5 class="declaration">Declaration</h5>
<div class="codewrapper"> <div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void ExecuteController&lt;T&gt;(string[] ids, string nspace, object e)</code></pre> <pre><code class="lang-csharp hljs">public static void ExecuteController&lt;T&gt;(string[] ids, string nspace, object e, Assembly execAssembly)</code></pre>
</div> </div>
<h5 class="parameters">Parameters</h5> <h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed"> <table class="table table-bordered table-condensed">
@ -150,6 +150,12 @@ For the EventControllerAttribute you have to pass the enum type e.g. of all cate
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td> <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
<td><span class="parametername">e</span></td> <td><span class="parametername">e</span></td>
<td><p>The passed event from the <a class="xref" href="Discord.Controller.EventController.html#Discord_Controller_EventController_InvokeEventControllerClass__2_System_String_System_Object_">InvokeEventControllerClass&lt;CLASS, ENUM&gt;(string, object)</a> - just needs to be put it as a param and passed over to the controller.</p> <td><p>The passed event from the <a class="xref" href="Discord.Controller.EventController.html#Discord_Controller_EventController_InvokeEventControllerClass__2_System_String_System_Object_">InvokeEventControllerClass&lt;CLASS, ENUM&gt;(string, object)</a> - just needs to be put it as a param and passed over to the controller.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.reflection.assembly">Assembly</a></td>
<td><span class="parametername">execAssembly</span></td>
<td><p>The executing assembly. Get it via <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.reflection.assembly.getexecutingassembly">GetExecutingAssembly()</a></p>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -179,7 +185,7 @@ For the EventControllerAttribute you have to pass the enum type e.g. of all cate
<div class="markdown level1 conceptual"></div> <div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5> <h5 class="declaration">Declaration</h5>
<div class="codewrapper"> <div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void InvokeEventControllerClass&lt;CLASS, ENUM&gt;(string ids, object e) where ENUM : class</code></pre> <pre><code class="lang-csharp hljs">public static void InvokeEventControllerClass&lt;CLASS, ENUM&gt;(string ids, object e)</code></pre>
</div> </div>
<h5 class="parameters">Parameters</h5> <h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed"> <table class="table table-bordered table-condensed">
@ -216,7 +222,7 @@ For the EventControllerAttribute you have to pass the enum type e.g. of all cate
<tbody> <tbody>
<tr> <tr>
<td><span class="parametername">CLASS</span></td> <td><span class="parametername">CLASS</span></td>
<td><p>The class that should be looked in by the controller, defined by using <a class="xref" href="Discord.Controller.EventController.html#Discord_Controller_EventController_ExecuteController__1_System_String___System_String_System_Object_">ExecuteController&lt;T&gt;(string[], string, object)</a></p> <td><p>The class that should be looked in by the controller, defined by using <see cref="!:ExecuteController&lt;T>(string[], string, object)"></see></p>
</td> </td>
</tr> </tr>
<tr> <tr>

View file

@ -31,7 +31,7 @@
"output": { "output": {
".html": { ".html": {
"relative_path": "api/Discord.Controller.EventController.html", "relative_path": "api/Discord.Controller.EventController.html",
"hash": "voYfGV1OwhsBH5yHW8vcB2gGj+Qw5eTV/eyPMeDmEzk=" "hash": "cIQkvjiZ1J5mCvTLIk2rmI9JMV+fifl0TLvnBO6RpTU="
} }
}, },
"version": "" "version": ""

View file

@ -71,15 +71,15 @@ references:
isSpec: "True" isSpec: "True"
fullName: Discord.Controller.EventController.ExecuteController fullName: Discord.Controller.EventController.ExecuteController
nameWithType: EventController.ExecuteController nameWithType: EventController.ExecuteController
- uid: Discord.Controller.EventController.ExecuteController``1(System.String[],System.String,System.Object) - uid: Discord.Controller.EventController.ExecuteController``1(System.String[],System.String,System.Object,System.Reflection.Assembly)
name: ExecuteController<T>(string[], string, object) name: ExecuteController<T>(string[], string, object, Assembly)
href: api/Discord.Controller.EventController.html#Discord_Controller_EventController_ExecuteController__1_System_String___System_String_System_Object_ href: api/Discord.Controller.EventController.html#Discord_Controller_EventController_ExecuteController__1_System_String___System_String_System_Object_System_Reflection_Assembly_
commentId: M:Discord.Controller.EventController.ExecuteController``1(System.String[],System.String,System.Object) commentId: M:Discord.Controller.EventController.ExecuteController``1(System.String[],System.String,System.Object,System.Reflection.Assembly)
name.vb: ExecuteController(Of T)(String(), String, Object) name.vb: ExecuteController(Of T)(String(), String, Object, Assembly)
fullName: Discord.Controller.EventController.ExecuteController<T>(string[], string, object) fullName: Discord.Controller.EventController.ExecuteController<T>(string[], string, object, System.Reflection.Assembly)
fullName.vb: Discord.Controller.EventController.ExecuteController(Of T)(String(), String, Object) fullName.vb: Discord.Controller.EventController.ExecuteController(Of T)(String(), String, Object, System.Reflection.Assembly)
nameWithType: EventController.ExecuteController<T>(string[], string, object) nameWithType: EventController.ExecuteController<T>(string[], string, object, Assembly)
nameWithType.vb: EventController.ExecuteController(Of T)(String(), String, Object) nameWithType.vb: EventController.ExecuteController(Of T)(String(), String, Object, Assembly)
- uid: Discord.Controller.EventController.InvokeEventControllerClass* - uid: Discord.Controller.EventController.InvokeEventControllerClass*
name: InvokeEventControllerClass name: InvokeEventControllerClass
href: api/Discord.Controller.EventController.html#Discord_Controller_EventController_InvokeEventControllerClass_ href: api/Discord.Controller.EventController.html#Discord_Controller_EventController_InvokeEventControllerClass_