示例#1
0
 internal Workflow(Assembly botAssembly, IComponentContext context)
 {
     this._context            = context;
     this._controllersService = new ControllersService(context, botAssembly, context.Resolve <BotCommandsService>(), context.Resolve <CommandsContainer>());
     this._commandParser      = context.Resolve <CommandParser>();
     this._middlewaresService = context.Resolve <MiddlewaresService>();
 }
示例#2
0
 internal Workflow(Assembly botAssembly, IComponentContext context)
 {
     this._controllersService          = new ControllersService(context, botAssembly, context.Resolve <BotCommandsService>(), context.Resolve <CommandsContainer>());
     this._commandParser               = context.Resolve <CommandParser>();
     this._middlewaresService          = context.Resolve <MiddlewaresService>();
     this._discordServerContextFactory = context.Resolve <DiscordServerContextFactory>();
     this._userContextsFactory         = context.Resolve <UserContextsFactory>();
     this._channelContextFactory       = context.Resolve <ChannelContextFactory>();
     this._userRoleFactory             = context.Resolve <UserRoleFactory>();
 }
示例#3
0
 internal Workflow(Assembly botAssembly, IComponentContext context)
 {
     this._controllersService = new ControllersService(context, botAssembly, context.Resolve <BotCommandsService>());
 }
示例#4
0
 internal Workflow(Assembly botAssembly, IComponentContext context)
 {
     this._controllersService = new ControllersService(context, botAssembly);
 }