/// <summary> /// Initializes a new instance of the <see cref="ControllerSubscriptionActionGraphFieldTemplate"/> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="methodInfo">The method information.</param> public ControllerSubscriptionActionGraphFieldTemplate( IGraphControllerTemplate parent, MethodInfo methodInfo) : base(parent, methodInfo) { this.EventName = null; }
/// <summary> /// Adds the <see cref="GraphControllerTemplate"/> and all associated types and virtual types to the schema. /// </summary> /// <param name="gcd">The template fully describing the controller.</param> private void AddController(IGraphControllerTemplate gcd) { foreach (var action in gcd.Actions) { this.AddAction(action); } foreach (var extension in gcd.Extensions) { this.AddTypeExtension(extension); } }
/// <summary> /// Initializes a new instance of the <see cref="ControllerActionGraphFieldTemplate" /> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="methodInfo">The method information.</param> public ControllerActionGraphFieldTemplate(IGraphControllerTemplate parent, MethodInfo methodInfo) : base(parent, methodInfo) { }