// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); }); //var tarkovMan = IoC.Resolve<TarkovManager>(); //TODO: Inject via IoC var startupConf = SettingsHelper.GetSettings(Configuration); var api = new EftApi(); var tarkovMan = new TarkovManager(startupConf, api); }
//BOT STARTING POINT public TarkovManager(StartupSettings config, EftApi api) { _config = config; //Create the Login Controller _loginController = new LoginController(_config, api); //Create the Profile Controller _profileController = new ProfileController(); //Create the Market Controller _marketController = new MarketController(_profileController); //Create the Trader Controller _traderController = new TraderController(); _botEndTime = DateTime.Now.AddHours(_hoursForBotToRestart); //Create a thread for a back-end task that the server will complete var botTask = new Task(StartTradingGrind); botTask.Start(); }
public TradeManager(EftApi api) : base(api) { }
public PlayerManager(EftApi api) : base(api) { }
public LoginController(StartupSettings config, EftApi api) { _config = config; _api = api; }
public BaseManager(EftApi api) { _api = api; }
public FleaMarketManager(EftApi api) : base(api) { }
public TarkovManager(StartupSettings config, EftApi api, string sessionCookie) { _config = config; _loginController = new LoginController(_config, api); _sessionCookie = sessionCookie; }