public void Initialize(IWorkerServiceContext context) { _store = context.Services.GetInstance<IEntityStoreManager>().CreateStore("LogData"); _store.RegisterEntity<LogEntryEntity>(); _context = context; _logBuffer = context.Services.GetInstance<LogWriterBufferService>(); _logBuffer.OnEntryAdded += new EventHandler(_logBuffer_OnEntryAdded); _context.Controller.WakeUp(); }
public void Initialize(IWorkerServiceContext context) { _store = context.Services.GetInstance <IEntityStoreManager>().CreateStore("LogData"); _store.RegisterEntity <LogEntryEntity>(); _context = context; _logBuffer = context.Services.GetInstance <LogWriterBufferService>(); _logBuffer.OnEntryAdded += new EventHandler(_logBuffer_OnEntryAdded); _context.Controller.WakeUp(); }
public EntityStoreLogWriter(String name) { Assert.EmptyString(name, "name"); this.Name = name; _buffer = ServiceLocator.GetInstance <LogWriterBufferService>(); }
public EntityStoreLogWriter(String name) { Assert.EmptyString(name, "name"); this.Name = name; _buffer = ServiceLocator.GetInstance<LogWriterBufferService>(); }