Example #1
0
 protected Node(CommandMetadata metadata, NodeContainer parent, MemberInfo type)
     : this(metadata, type)
 {
     Parent = parent ?? throw new InvalidOperationException("Parent cannot be null when explicitly set up.");
 }
Example #2
0
 public NodeModule(string id, NodeContainer parent, IServiceProvider provider, Type t)
     : base(new CommandMetadata {
     Identifiers = new[] { id }
 }, parent, provider, t)
 {
 }
Example #3
0
 public CommandTree()
 {
     Root = new NodeRoot();
 }