Audit.Program.AttachToLocalLog C# (CSharp) Method

AttachToLocalLog() static private method

static private AttachToLocalLog ( string filePath ) : void
filePath string
return void
        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));
        }