From 1372214768927951a84ab561bc7d1dc66cb78fa8 Mon Sep 17 00:00:00 2001 From: Dultus Date: Thu, 6 Apr 2023 15:40:29 +0200 Subject: [PATCH] Add files via upload Updated ExecuteController Description. --- .../Discord.Controller.EventController.html | 14 ++++++++++---- docs/manifest.json | 2 +- docs/xrefmap.yml | 18 +++++++++--------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/docs/api/Discord.Controller.EventController.html b/docs/api/Discord.Controller.EventController.html index 6ccfa9d..87a9c56 100644 --- a/docs/api/Discord.Controller.EventController.html +++ b/docs/api/Discord.Controller.EventController.html @@ -115,14 +115,14 @@ -

ExecuteController<T>(string[], string, object)

+

ExecuteController<T>(string[], string, object, Assembly)

Method To be placed in a separate Class that will be passed into the InvokeEventControllerClass<CLASS, ENUM>(string, object) 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.

Declaration
-
public static void ExecuteController<T>(string[] ids, string nspace, object e)
+
public static void ExecuteController<T>(string[] ids, string nspace, object e, Assembly execAssembly)
Parameters
@@ -150,6 +150,12 @@ For the EventControllerAttribute you have to pass the enum type e.g. of all cate + + + + + @@ -179,7 +185,7 @@ For the EventControllerAttribute you have to pass the enum type e.g. of all cate
Declaration
-
public static void InvokeEventControllerClass<CLASS, ENUM>(string ids, object e) where ENUM : class
+
public static void InvokeEventControllerClass<CLASS, ENUM>(string ids, object e)
Parameters
object e

The passed event from the InvokeEventControllerClass<CLASS, ENUM>(string, object) - just needs to be put it as a param and passed over to the controller.

+
AssemblyexecAssembly

The executing assembly. Get it via GetExecutingAssembly()

@@ -216,7 +222,7 @@ For the EventControllerAttribute you have to pass the enum type e.g. of all cate - diff --git a/docs/manifest.json b/docs/manifest.json index 4462194..3de2059 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -31,7 +31,7 @@ "output": { ".html": { "relative_path": "api/Discord.Controller.EventController.html", - "hash": "voYfGV1OwhsBH5yHW8vcB2gGj+Qw5eTV/eyPMeDmEzk=" + "hash": "cIQkvjiZ1J5mCvTLIk2rmI9JMV+fifl0TLvnBO6RpTU=" } }, "version": "" diff --git a/docs/xrefmap.yml b/docs/xrefmap.yml index 433aa99..34f0e2b 100644 --- a/docs/xrefmap.yml +++ b/docs/xrefmap.yml @@ -71,15 +71,15 @@ references: isSpec: "True" fullName: Discord.Controller.EventController.ExecuteController nameWithType: EventController.ExecuteController -- uid: Discord.Controller.EventController.ExecuteController``1(System.String[],System.String,System.Object) - name: ExecuteController(string[], string, object) - href: api/Discord.Controller.EventController.html#Discord_Controller_EventController_ExecuteController__1_System_String___System_String_System_Object_ - commentId: M:Discord.Controller.EventController.ExecuteController``1(System.String[],System.String,System.Object) - name.vb: ExecuteController(Of T)(String(), String, Object) - fullName: Discord.Controller.EventController.ExecuteController(string[], string, object) - fullName.vb: Discord.Controller.EventController.ExecuteController(Of T)(String(), String, Object) - nameWithType: EventController.ExecuteController(string[], string, object) - nameWithType.vb: EventController.ExecuteController(Of T)(String(), String, Object) +- uid: Discord.Controller.EventController.ExecuteController``1(System.String[],System.String,System.Object,System.Reflection.Assembly) + name: ExecuteController(string[], string, object, Assembly) + 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,System.Reflection.Assembly) + name.vb: ExecuteController(Of T)(String(), String, Object, Assembly) + fullName: Discord.Controller.EventController.ExecuteController(string[], string, object, System.Reflection.Assembly) + fullName.vb: Discord.Controller.EventController.ExecuteController(Of T)(String(), String, Object, System.Reflection.Assembly) + nameWithType: EventController.ExecuteController(string[], string, object, Assembly) + nameWithType.vb: EventController.ExecuteController(Of T)(String(), String, Object, Assembly) - uid: Discord.Controller.EventController.InvokeEventControllerClass* name: InvokeEventControllerClass href: api/Discord.Controller.EventController.html#Discord_Controller_EventController_InvokeEventControllerClass_
CLASS

The class that should be looked in by the controller, defined by using ExecuteController<T>(string[], string, object)

+

The class that should be looked in by the controller, defined by using