/// <summary> /// Initializes a new instance of the <see cref="ActionContentResult" /> class. /// </summary> public ActionContentResult(HttpStatusCode statusCode, IActionLinkService actionLinkService, ActionItem action, ApiController controller) { StatusCode = statusCode; ActionLinkService = actionLinkService; Action = action; Controller = controller; }
/// <summary> /// Initializes a new instance of the <see cref="ActionLinkContentResult" /> class. /// </summary> public ActionLinkContentResult(IActionLinkService actionLinkService, ActionItem action, ContactItem contact, string customUri, ApiController controller) { ActionLinkService = actionLinkService; Action = action; Contact = contact; CustomUri = customUri; Controller = controller; }
/// <summary> /// Initializes a new instance of the <see cref="StringTemplate" /> class. /// </summary> public StringTemplate(IActionLinkService actionLinkService) { if (actionLinkService == null) { throw new ArgumentNullException(nameof(actionLinkService)); } ActionLinkService = actionLinkService; _accessorCache = new StringTemplateCache(); }
/// <summary> /// Initializes a new instance of the <see cref="WorkflowController" /> class. /// </summary> public WorkflowController( SecurityManager securityManager, ProjectManager projectManager, WorkflowInvoker workflowInvoker, IActionLinkService actionLinkService) { _securityManager = securityManager; _projectManager = projectManager; _workflowInvoker = workflowInvoker; _actionLinkService = actionLinkService; }
/// <summary> /// Maps an action to a result model object. /// </summary> /// <param name="action">The action to map.</param> /// <returns> /// The mapped action. /// </returns> internal static ActionResultDto Map(IActionLinkService actionLinkService, ActionItem action) { var model = new ActionResultDto { Id = action.Id, Project = action.Project, Type = action.Type, Enabled = action.Enabled, ModifiedDate = action.ModifiedDate, Name = action.Name, Options = action.Options, Children = action.Children.OfType <ActionItem>().Select(a => Map(actionLinkService, a)).ToList() }; if (action.Parent == null) { model.Link = actionLinkService.CreateLink(new ActionLink(action.Id), true); } return(model); }
/// <summary> /// Initializes a new instance of the <see cref="ActionLinkModelBinder" /> class. /// </summary> /// <param name="service">The project manager.</param> public ActionLinkModelBinder(IActionLinkService service) { _service = service; }
/// <summary> /// Initializes a new instance of the <see cref="ActionsController" /> class. /// </summary> /// <param name="projectManager">The project manager that the <see cref="ActionsController" /> operates against.</param> public ActionsController(ProjectManager projectManager, IActionLinkService actionLinkService) { _projectManager = projectManager; _actionLinkService = actionLinkService; }
/// <summary> /// Initializes a new instance of the <see cref="ActionContentResult" /> class. /// </summary> public ActionContentResult(IActionLinkService actionLinkService, ActionItem action, ApiController controller) { ActionLinkService = actionLinkService; Action = action; Controller = controller; }