public override void Init()
 {
     base.Init();
       _saveService = App.GetService<IBackgroundSaveService>();
       _saveService.RegisterObjectHandler(typeof(TransactionLogEntry), this);
       SetupUpdateLogging();
 }
Exemple #2
0
 public LogFileWriter(EntityApp app, string logPath)
 {
     _app                 = app;
     LogPath              = logPath;
     _logService          = app.GetService <IOperationLogService>();
     _saveService         = app.GetService <IBackgroundSaveService>();
     _saveService.Saving += SaveService_Saving;
 }
Exemple #3
0
 public override void Init()
 {
     base.Init();
       _saveService = App.GetService<IBackgroundSaveService>();
       _saveService.RegisterObjectHandler(typeof(OperationLogEntry), this);
       _saveService.RegisterObjectHandler(typeof(SystemLogEntry), new SystemLogEntrySaveHandler());
       //Registering handler for LogEntry would cover all derived classes
 }
Exemple #4
0
 public override void Init()
 {
     base.Init();
       _backgroundSave = App.GetService<IBackgroundSaveService>();
       _backgroundSave.RegisterObjectHandler(typeof(LoginLogEntry), this);
 }
Exemple #5
0
 public override void Init()
 {
     base.Init();
     _backgroundSave = App.GetService <IBackgroundSaveService>();
     _backgroundSave.RegisterObjectHandler(typeof(LoginLogEntry), this);
 }
Exemple #6
0
 public override void Init()
 {
     base.Init();
     _saveService = App.GetService <IBackgroundSaveService>();
 }
Exemple #7
0
 public override void Init()
 {
     base.Init();
       _saveService = App.GetService<IBackgroundSaveService>();
 }
 public void Init(EntityApp app)
 {
     _saveService = app.GetService <IBackgroundSaveService>();
 }
Exemple #9
0
 public override void Init()
 {
     base.Init();
     _backgroundSaveService = App.GetService <IBackgroundSaveService>();
     _backgroundSaveService.RegisterObjectHandler(typeof(WebCallContext), this);
 }
Exemple #10
0
 public override void Init()
 {
     base.Init();
       _backgroundSaveService = App.GetService<IBackgroundSaveService>();
       _backgroundSaveService.RegisterObjectHandler(typeof(WebCallContext), this);
 }