public override void Init() { base.Init(); _saveService = App.GetService<IBackgroundSaveService>(); _saveService.RegisterObjectHandler(typeof(TransactionLogEntry), this); SetupUpdateLogging(); }
public LogFileWriter(EntityApp app, string logPath) { _app = app; LogPath = logPath; _logService = app.GetService <IOperationLogService>(); _saveService = app.GetService <IBackgroundSaveService>(); _saveService.Saving += SaveService_Saving; }
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 }
public override void Init() { base.Init(); _backgroundSave = App.GetService<IBackgroundSaveService>(); _backgroundSave.RegisterObjectHandler(typeof(LoginLogEntry), this); }
public override void Init() { base.Init(); _backgroundSave = App.GetService <IBackgroundSaveService>(); _backgroundSave.RegisterObjectHandler(typeof(LoginLogEntry), this); }
public override void Init() { base.Init(); _saveService = App.GetService <IBackgroundSaveService>(); }
public override void Init() { base.Init(); _saveService = App.GetService<IBackgroundSaveService>(); }
public void Init(EntityApp app) { _saveService = app.GetService <IBackgroundSaveService>(); }
public override void Init() { base.Init(); _backgroundSaveService = App.GetService <IBackgroundSaveService>(); _backgroundSaveService.RegisterObjectHandler(typeof(WebCallContext), this); }
public override void Init() { base.Init(); _backgroundSaveService = App.GetService<IBackgroundSaveService>(); _backgroundSaveService.RegisterObjectHandler(typeof(WebCallContext), this); }