/// <summary> /// Gets a list of all available actions including Rhino Plugins. /// </summary> /// <param name="authentication">Authentication object by which to get logs.</param> /// <returns>A collection of action names (PascalCase).</returns> public IEnumerable <string> GetActions(Authentication authentication) { // setup var pluginSpecs = rhinoPlugin.Get(authentication).data; var pluginObjcs = new RhinoPluginFactory().GetRhinoPlugins(pluginSpecs.ToArray()); // return all actions return(Client.Actions().Concat(pluginObjcs.Select(i => i.Key))); }
private IEnumerable <(string Type, ActionAttribute Action)> DoGetActions(Authentication authentication) { // setup var pluginSpecs = rhinoPlugin.Get(authentication).data; var pluginObjcs = new RhinoPluginFactory().GetRhinoPlugins(pluginSpecs.ToArray()); // convert var attributes = pluginObjcs.Select(i => ("plugin", i.ToActionAttribute())); // return all actions return(Client.Actions().Select(i => ("code", Client.Actions(i))).Concat(attributes)); }