Exemple #1
0
 /// <summary>
 /// Grab all the subclass type definitions of StatefulPlugin out of an assembly
 /// </summary>
 /// <param name="assembly">Given assembly to search for</param>
 static void RegisterAllStatefulPlugins(Assembly assembly)
 {
     foreach (Type t in assembly.GetTypes())
     {
         if (t.IsSubclassOf(typeof(StatefulPlugin)))
         {
             RestBot.AddStatefulPluginDefinition(t);
         }
     }
 }