public when_saving_a_new_event_source() : base() { //Bandaid for file system race. See issue #54 for full explanation Thread.Sleep(TimeSpan.FromSeconds(1)); _foldername = GetPath(); _filename = EventSourceId.ToString().Substring(2); }
string GetPathFor(string eventSource, EventSourceId eventSourceId) { var fullPath = Path.Combine(GetPathFor(eventSource), eventSourceId.ToString()); if (!Directory.Exists(fullPath)) { Directory.CreateDirectory(fullPath); } return(fullPath); }
public void SetUp() { BaseSetup(); //Bandaid for file system race. See issue #54 for full explanation Thread.Sleep(TimeSpan.FromSeconds(1)); _foldername = GetPath(); _filename = EventSourceId.ToString().Substring(2); }
string GetPathFor(string eventSource, EventSourceId eventSourceId) { var fullPath = Path.Combine(GetPathFor(eventSource), eventSourceId.ToString()); return(fullPath); }
public override string ToString() { return(string.Format("{0}[{1}]", GetType().FullName, EventSourceId.ToString("D"))); }