Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public TriggerController(IRealmService realmService, IQueueClientWrapper<RealmDto> queueClient)
 {
     this._realmService = realmService;
     this._queueClient = queueClient;
 }