Class WebApi2ControllerBuildTask
Buildtasks for creating a web api controller from json definition
Implements
Microsoft.Build.Framework.ITask
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.CXUI.WebApi2
Assembly: Simplic.CXUI.WebApi2.dll
Syntax
public class WebApi2ControllerBuildTask : BuildTaskBase
Constructors
| Improve this Doc View SourceWebApi2ControllerBuildTask(Func<ControllerDefinition, ActionDefinition, String>)
Initialize new web api controller build task
Declaration
public WebApi2ControllerBuildTask(Func<ControllerDefinition, ActionDefinition, string> actionBodyGenerator)
Parameters
Type | Name | Description |
---|---|---|
System.Func<ControllerDefinition, ActionDefinition, System.String> | actionBodyGenerator |
Properties
| Improve this Doc View SourceActionTemplate
Gets or setst the template which will be used for generating an action in a controlelr
Declaration
public string ActionTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ControllerDefinitionFiles
Gets or sets a list of json controller definition files
Declaration
public IList<string> ControllerDefinitionFiles { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> |
ControllerTemplate
Gets or sets the template which will be used for generating a controller
Declaration
public string ControllerTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceExecute()
Create controller c# code
Declaration
public override bool Execute()
Returns
Type | Description |
---|---|
System.Boolean | Returns true, when creating the controller was successfull |
Overrides
Implements
Microsoft.Build.Framework.ITask