public PiServerService()
 {
     this.context            = new ContextInfoAccessorService();
     this.dbContext          = new PowerGridEntities();
     this.blobStorageService = new BlobStorageService();
     this.applicationConfigurationService = new ApplicationConfigurationService();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AlertService"/> class.
 /// </summary>
 public AlertService()
 {
     this.dbContext = new PowerGridEntities();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SensorService"/> class.
 /// </summary>
 public SensorService()
 {
     this.dbContext = new PowerGridEntities();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserService"/> class.
 /// </summary>
 public UserService()
 {
     this.dbContext = new PowerGridEntities();
     this.context   = new ContextInfoAccessorService();
 }
 public BuildingService()
 {
     this.dbContext    = new PowerGridEntities();
     this.context      = new ContextInfoAccessorService();
     this.meterService = new MeterService();
 }
 public OrganizationService()
 {
     this.dbContext          = new PowerGridEntities();
     this.context            = new ContextInfoAccessorService();
     this.blobStorageService = new BlobStorageService();
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QuestionService"/> class.
 /// </summary>
 public QuestionService()
 {
     this.dbContext = new PowerGridEntities();
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InsightService"/> class.
 /// </summary>
 public InsightService()
 {
     this.dbContext    = new PowerGridEntities();
     this.meterService = new MeterService();
 }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationConfigurationService"/> class.
 /// </summary>
 public ApplicationConfigurationService()
 {
     this.dbContext = new PowerGridEntities();
     this.context   = new ContextInfoAccessorService();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AnomalyService"/> class.
 /// </summary>
 public AnomalyService()
 {
     this.dbContext = new PowerGridEntities();
 }