public DomainLogView(LocalEventStore eventStore, SimpleMessageSender endpoint, IEnvelopeStreamer serializer) { InitializeComponent(); _client = eventStore; _services = new ShellServices(endpoint); _serializer = serializer; _log.BackColor = CommonColors.Solarized.Base03; _log.ForeColor = CommonColors.Solarized.Base0; _display.BackColor = CommonColors.Solarized.Base3; _display.ForeColor = CommonColors.Solarized.Base00; _detailsLabel.BackColor = CommonColors.Solarized.Base2; _detailsLabel.ForeColor = CommonColors.Solarized.Base01; var control = new RepopulateView(serializer, eventStore, _services) { Dock = DockStyle.Fill }; viewsTab.Controls.Add(control); }
static void AttachToLocalLog(string filePath) { SimpleMessageSender sender; var cache = new FileTapeStream(filePath); var store = new LocalEventStore(null, cache); var directoryName = Path.GetDirectoryName(filePath) ?? ""; var dir = new DirectoryInfo(directoryName); FileStorageConfig config; if (dir.Name == Topology.TapesContainer) { // we are in proper tapes container config = FileStorage.CreateConfig(dir.Parent); } else { var temp = Path.Combine(dir.FullName, string.Format("temp-{0:yyyy-MM-dd-HHmm}", DateTime.Now)); config = FileStorage.CreateConfig(temp); } var send = config.CreateQueueWriter(Topology.RouterQueue); var endpoint = new SimpleMessageSender(EnvelopeStreamer, send); Application.Run(new DomainLogView(store, endpoint, EnvelopeStreamer)); }
static void AttachToLocalLog(string filePath) { SimpleMessageSender sender; var cache = new FileTapeStream(filePath); var store = new LocalEventStore(null, cache); var directoryName = Path.GetDirectoryName(filePath) ?? ""; var dir = new DirectoryInfo(directoryName); FileStorageConfig config; if (dir.Name == Topology.TapesContainer) { // we are in proper tapes container config = FileStorage.CreateConfig(dir.Parent); } else { var temp = Path.Combine(dir.FullName, string.Format("temp-{0:yyyy-MM-dd-HHmm}", DateTime.Now)); config = FileStorage.CreateConfig(temp); } var send = config.CreateQueueWriter(Topology.RouterQueue); var endpoint = new SimpleMessageSender(EnvelopeStreamer, send); Application.Run(new DomainLogView(store, endpoint, EnvelopeStreamer)); }
public RepopulateView(IEnvelopeStreamer serializer, LocalEventStore localEventStore, ShellServices services) { _services = services; _manager = new DomainQueryManager(serializer, localEventStore, _services); InitializeComponent(); ViewLoad(); }
static void AttachToLocalLog(string filePath) { var config = FileStorage.CreateConfig(Path.GetDirectoryName(filePath) ?? ""); var cache = new FileTapeStream(filePath); var store = new LocalEventStore(null, cache); var send = config.CreateQueueWriter(Topology.RouterQueue); var endpoint = new SimpleMessageSender(EnvelopeStreamer, send); Application.Run(new DomainLogView(store, endpoint, EnvelopeStreamer)); }
static void AttachToLocalLog(string filePath) { var config = FileStorage.CreateConfig(Path.GetDirectoryName(filePath) ?? ""); var cache = new FileTapeStream(filePath); var store = new LocalEventStore(null, cache); var send = config.CreateQueueWriter(Topology.RouterQueue); var endpoint = new SimpleMessageSender(EnvelopeStreamer, send); Application.Run(new DomainLogView(store, endpoint, EnvelopeStreamer)); }
public DomainLogView(LocalEventStore eventStore, SimpleMessageSender endpoint, IEnvelopeStreamer serializer) { InitializeComponent(); _client = eventStore; _services = new ShellServices(endpoint); _serializer = serializer; _log.BackColor = CommonColors.Solarized.Base03; _log.ForeColor = CommonColors.Solarized.Base0; _display.BackColor = CommonColors.Solarized.Base3; _display.ForeColor = CommonColors.Solarized.Base00; _detailsLabel.BackColor = CommonColors.Solarized.Base2; _detailsLabel.ForeColor = CommonColors.Solarized.Base01; }
public DomainLogView(LocalEventStore eventStore, SimpleMessageSender endpoint, IEnvelopeStreamer serializer) { InitializeComponent(); _client = eventStore; _services = new ShellServices(endpoint); _serializer = serializer; _log.BackColor = CommonColors.Solarized.Base03; _log.ForeColor = CommonColors.Solarized.Base0; _display.BackColor = CommonColors.Solarized.Base3; _display.ForeColor = CommonColors.Solarized.Base00; _detailsLabel.BackColor = CommonColors.Solarized.Base2; _detailsLabel.ForeColor = CommonColors.Solarized.Base01; }
public DomainLogView(LocalEventStore eventStore, SimpleMessageSender endpoint, IEnvelopeStreamer serializer) { InitializeComponent(); _client = eventStore; _services = new ShellServices(endpoint); _serializer = serializer; _log.BackColor = CommonColors.Solarized.Base03; _log.ForeColor = CommonColors.Solarized.Base0; _display.BackColor = CommonColors.Solarized.Base3; _display.ForeColor = CommonColors.Solarized.Base00; _detailsLabel.BackColor = CommonColors.Solarized.Base2; _detailsLabel.ForeColor = CommonColors.Solarized.Base01; var control = new RepopulateView(serializer, eventStore, _services) {Dock = DockStyle.Fill}; viewsTab.Controls.Add(control); }
public DomainQueryManager CloneFor(LocalEventStore store) { return new DomainQueryManager(_serializer, store, _services); }
public DomainQueryManager(IEnvelopeStreamer serializer, LocalEventStore store, ShellServices services) { _serializer = serializer; _store = store; _services = services; }