public StartController(ServerContext context, HttpContext httpContext) { _context = context; _httpContext = httpContext; _context.ReplicationCollection = new ReplicationModelCollection(); var dataBaseConnection = new DataBaseConnection(); _context.DataBaseConnection = dataBaseConnection; dataBaseConnection.Connect(); if (!context.DataBaseConnection.IsConnection) { ServerLoggerModel.Log(TypeLog.Fatal, "StartController: the server did not start correctly due to problems with the connection to the database"); } else { CreateModels(); CreateControllers(); _controllerCollection.Activate(); new Deserializer().Deserialize(context); ServerLoggerModel.Log(TypeLog.Info, "server started"); } }