C# Class NBot.RobotBuilderExtenstions

ファイルを表示 Open project: NBot/NBot

Public Methods

Method Description
RegisterHandlers ( this robot ) : MessageHandlerRoomAuthorization
RegisterHandlersInAssembly ( this robot, Assembly assembly ) : MessageHandlerRoomAuthorization
RegisterHandlersInAssemblyByTags ( this robot, Assembly assembly ) : MessageHandlerRoomAuthorization

Private Methods

Method Description
AnyTag ( Type handlerType, IEnumerable tags ) : bool
CreateInstance ( Type handlerType ) : IMessageHandler
GetHandlers ( Assembly assembly ) : IEnumerable

Method Details

RegisterHandlers() public static method

public static RegisterHandlers ( this robot ) : MessageHandlerRoomAuthorization
robot this
return NBot.Core.MessageHandlerRoomAuthorization

RegisterHandlersInAssembly() public static method

public static RegisterHandlersInAssembly ( this robot, Assembly assembly ) : MessageHandlerRoomAuthorization
robot this
assembly System.Reflection.Assembly
return NBot.Core.MessageHandlerRoomAuthorization

RegisterHandlersInAssemblyByTags() public static method

public static RegisterHandlersInAssemblyByTags ( this robot, Assembly assembly ) : MessageHandlerRoomAuthorization
robot this
assembly System.Reflection.Assembly
return NBot.Core.MessageHandlerRoomAuthorization