C# Class CodeSharp.EventSourcing.TypeUtils

Datei anzeigen Open project: tangxuehua/eventsourcing Class Usage Examples

Public Methods

Method Description
IsAggregateRoot ( Type type ) : bool

判断给定类型是否是聚合根

IsComponent ( Type type ) : bool

判断给定类型是否是组件,标记了ComponentAttribute特性的类

IsController ( Type type ) : bool

判断给定类型是否是MVC Controller

IsEventSubscriber ( Type type ) : bool

判断给定类型是否是事件订阅者

IsRepository ( Type type ) : bool

判断给定类型是否是仓储

IsService ( Type type ) : bool

判断给定类型是否是服务

IsSourcableEvent ( Type type ) : bool

判断给定类型是否是可溯源事件

Method Details

IsAggregateRoot() public static method

判断给定类型是否是聚合根
public static IsAggregateRoot ( Type type ) : bool
type System.Type
return bool

IsComponent() public static method

判断给定类型是否是组件,标记了ComponentAttribute特性的类
public static IsComponent ( Type type ) : bool
type System.Type
return bool

IsController() public static method

判断给定类型是否是MVC Controller
public static IsController ( Type type ) : bool
type System.Type
return bool

IsEventSubscriber() public static method

判断给定类型是否是事件订阅者
public static IsEventSubscriber ( Type type ) : bool
type System.Type
return bool

IsRepository() public static method

判断给定类型是否是仓储
public static IsRepository ( Type type ) : bool
type System.Type
return bool

IsService() public static method

判断给定类型是否是服务
public static IsService ( Type type ) : bool
type System.Type
return bool

IsSourcableEvent() public static method

判断给定类型是否是可溯源事件
public static IsSourcableEvent ( Type type ) : bool
type System.Type
return bool