// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. // ReSharper disable once UnusedMember.Global public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApplicationLifetime life) { AppLog.ShowLogOnError(app); BaseModel.IsDev = env.IsDevelopment(); TZ.Init(env.IsDevelopment()); Config.Initialize(env); Security.DenyFrame(app); StaticFiles.Configure(app); Route.CreateRoutes(); Rewrite.TestThemAll(app); Context.Set(app); Error.AddHandlers(app, env); Orm.Config(app, life); Context.SetLanguage(app, env); Access.Run(app); Route.Execute(app); }
public Service(String task) { this.task = EnumX.Parse <Task>(task); TZ.Init(false); service = new ServiceAccess(getTicket, getSite); if (this.task != Task.Check) { service.Current.Set(Cfg.RobotEmail, Cfg.RobotPassword, false); } if (this.task == Task.Wipe) { s3 = new S3(); } }
public static void Start() { Cfg.Init(); setLogName(); setRepositories(); log("General", "BeforeTestRun"); TZ.Init(false); ControlMap.IsTest = true; SessionFactoryManager.Initialize <UserMap, User>(Cfg.DB); SessionManager.Init(getTicketKey); service = new ServiceAccess(getTicket, getSite); PlainText.Initialize(runPath); }
/// <summary> /// Initializes this instance of the <see cref="Vector3DTransform"/> class. /// </summary> public void Init(Vector3D v0, Vector3D v1, double t0 = 0, double t1 = 1) { TX.Init(t0, t1, v0.X, v1.X); TY.Init(t0, t1, v0.Y, v1.Y); TZ.Init(t0, t1, v0.Z, v1.Z); }
/// <summary> /// Initializes this instance of the <see cref="Point3DTransform"/> class. /// </summary> public void Init(Point3D p0, Point3D p1, double t0 = 0, double t1 = 1) { TX.Init(t0, t1, p0.X, p1.X); TY.Init(t0, t1, p0.Y, p1.Y); TZ.Init(t0, t1, p0.Z, p1.Z); }