Class MvcService
public class MvcService : IMvcService
- Inheritance
-
MvcService
- Implements
- Inherited Members
- Extension Methods
Constructors
MvcService()
public MvcService()
Properties
History
public Stack<ILinkAction> History { get; }
Property Value
Methods
CreateActionResult(LinkAction)
public Task<IActionResult> CreateActionResult(LinkAction linkAction)
Parameters
linkAction
LinkAction
Returns
DoActionResult(LinkAction)
public Task DoActionResult(LinkAction linkAction)
Parameters
linkAction
LinkAction
Returns
GetActionResult(IController, string, object[])
public object GetActionResult(IController controller, string action, object[] args = null)
Parameters
controller
IControlleraction
stringargs
object[]
Returns
GetActionResult(string, string)
直接从路径加载 不走Controller
public IActionResult GetActionResult(string controlName, string ActionName)
Parameters
Returns
GetController(LinkAction)
public IController GetController(LinkAction linkAction)
Parameters
linkAction
LinkAction
Returns
GetLinkActionGroups()
public LinkActionGroups GetLinkActionGroups()
Returns
GetLinkActions()
public List<IAction> GetLinkActions()
Returns
GetOfType(Predicate<Type>)
public Type GetOfType(Predicate<Type> match)
Parameters
Returns
GetPath(string, string)
public string GetPath(string controlName, string ActionName)
Parameters
Returns
GetUri(string, string)
public Uri GetUri(string controlName, string ActionName)
Parameters
Returns
GetView(string, string)
加载指定路径视图
public Control GetView(string controlName, string ActionName)
Parameters
Returns
GetViewModel(string)
public virtual object GetViewModel(string controlName)
Parameters
controlName
string
Returns
Init()
public void Init()
RegisterMvc<TClass>()
public void RegisterMvc<TClass>() where TClass : class
Type Parameters
TClass