Table of Contents

Class MvcService

Namespace
HeBianGu.Service.Mvc
Assembly
HeBianGu.Service.Mvc.dll
public class MvcService : IMvcService
Inheritance
MvcService
Implements
Inherited Members
Extension Methods

Constructors

MvcService()

public MvcService()

Properties

History

public Stack<ILinkAction> History { get; }

Property Value

Stack<ILinkAction>

Methods

CreateActionResult(LinkAction)

public Task<IActionResult> CreateActionResult(LinkAction linkAction)

Parameters

linkAction LinkAction

Returns

Task<IActionResult>

DoActionResult(LinkAction)

public Task DoActionResult(LinkAction linkAction)

Parameters

linkAction LinkAction

Returns

Task

GetActionResult(IController, string, object[])

public object GetActionResult(IController controller, string action, object[] args = null)

Parameters

controller IController
action string
args object[]

Returns

object

GetActionResult(string, string)

直接从路径加载 不走Controller

public IActionResult GetActionResult(string controlName, string ActionName)

Parameters

controlName string
ActionName string

Returns

IActionResult

GetController(LinkAction)

public IController GetController(LinkAction linkAction)

Parameters

linkAction LinkAction

Returns

IController

GetLinkActionGroups()

public LinkActionGroups GetLinkActionGroups()

Returns

LinkActionGroups

GetLinkActions()

public List<IAction> GetLinkActions()

Returns

List<IAction>

GetOfType(Predicate<Type>)

public Type GetOfType(Predicate<Type> match)

Parameters

match Predicate<Type>

Returns

Type

GetPath(string, string)

public string GetPath(string controlName, string ActionName)

Parameters

controlName string
ActionName string

Returns

string

GetUri(string, string)

public Uri GetUri(string controlName, string ActionName)

Parameters

controlName string
ActionName string

Returns

Uri

GetView(string, string)

加载指定路径视图

public Control GetView(string controlName, string ActionName)

Parameters

controlName string
ActionName string

Returns

Control

GetViewModel(string)

public virtual object GetViewModel(string controlName)

Parameters

controlName string

Returns

object

Init()

public void Init()

RegisterMvc<TClass>()

public void RegisterMvc<TClass>() where TClass : class

Type Parameters

TClass