/// <summary>
 /// Initializes a new instance of the <see cref="FWControlTagHelper" />.
 /// </summary>
 /// <param name="urlHelperFactory">The url helper factory.</param>
 /// <param name="actionAccessor">The action accessor.</param>
 /// <param name="metadataProvider">The model metadata provider.</param>
 protected FWControlTagHelper(IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionAccessor, IModelMetadataProvider metadataProvider)
 {
     RequestContext = new FWRequestContext(urlHelperFactory, actionAccessor, metadataProvider);
 }
Пример #2
0
 /// <summary>
 /// Creates a new <see cref="FWChartControl"/> control.
 /// </summary>
 /// <param name="requestContext">The request helper.</param>
 /// <param name="id">The control id.</param>
 public FWChartControl(FWRequestContext requestContext, string id)
     : base(id)
 {
     _requestContext = requestContext;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FWControlTagHelper" />.
 /// </summary>
 /// <param name="urlHelperFactory">The url helper factory.</param>
 /// <param name="actionAccessor">The action accessor.</param>
 protected FWControlTagHelper(IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionAccessor)
 {
     RequestContext = new FWRequestContext(urlHelperFactory, actionAccessor);
 }
Пример #4
0
 /// <summary>
 /// Creates a new Textbox control.
 /// </summary>
 /// <param name="requestContext">The request helper.</param>
 /// <param name="model">The current model.</param>
 /// <param name="metadata">The model metadata.</param>
 /// <param name="layout">The upload content layout.</param>
 public FWUploadControl(FWRequestContext requestContext, object model, ModelMetadata metadata, FWUploadLayout layout)
     : base(requestContext, model, metadata)
 {
     _layout = layout;
 }