public override bool OnStart() { // Autofac setup. var builder = new ContainerBuilder(); IoC.RegisterServices(builder); var container = builder.Build(); // Assign injections. this._guildsQueueClient = container.Resolve<IQueueClientWrapper<ProcessRealmGuildsRequest>>(); this._guildService = container.Resolve<IGuildService>(); Trace.TraceInformation("WoW.Crawler.Guild.Worker has been started"); return base.OnStart(); }
public TriggerController(IRealmService realmService, IQueueClientWrapper<RealmDto> queueClient) { this._realmService = realmService; this._queueClient = queueClient; }