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();
 }
示例#2
0
 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();
 }
示例#3
0
 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>();
 }