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);
        }
예제 #2
0
        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);
        }
예제 #4
0
        string GetPathFor(string eventSource, EventSourceId eventSourceId)
        {
            var fullPath = Path.Combine(GetPathFor(eventSource), eventSourceId.ToString());

            return(fullPath);
        }
예제 #5
0
파일: EventSource.cs 프로젝트: zonaid/ncqrs
 public override string ToString()
 {
     return(string.Format("{0}[{1}]", GetType().FullName, EventSourceId.ToString("D")));
 }