Interface IMvcComponent
A MVC component contract
Namespace: Onbox.Mvc.Abstractions.V8
Assembly: Onbox.Mvc.Abstractions.dll
Syntax
public interface IMvcComponent
Properties
| Improve this Doc View SourceName
Declaration
string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceRunOnInitFunc(Func<Task>, Action<String>, Action)
Runs an async method on View Initialization
Declaration
void RunOnInitFunc(Func<Task> func, Action<string> error = null, Action complete = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Func<System.Threading.Tasks.Task> | func | The method to run |
| System.Action<System.String> | error | If an exception is raised |
| System.Action | complete | After completing the method |