Beispiel #1
0
        public void InfoEmptyLine()
        {
            var line = "----------------------------------";

            Trace.WriteLine(line);
            AsyncFormEventBus.Raise(new AsyncFormMessageEvent(line));
        }
Beispiel #2
0
        public void InfoException(Exception ex, string preFix = "[Exception]", string category = null)
        {
            var value = WithPrefix ? $"{category}{preFix} => {ex.Message}" : $"{ex.Message}";

            Trace.WriteLine(value);
            AsyncFormEventBus.Raise(new AsyncFormMessageEvent(value));
        }
Beispiel #3
0
        public void Info(string message, string preFix = "[Info]", string category = null)
        {
            var value = WithPrefix ? $"{category}{preFix} => {message}" : $"{message}";

            Trace.WriteLine(value);
            AsyncFormEventBus.Raise(new AsyncFormMessageEvent(value));
        }
Beispiel #4
0
        public void InfoObj(Object obj, string preFix = "[Info][Object]", string category = null)
        {
            var sb = new StringBuilder();

            LookupProperties(obj, sb);
            var value = WithPrefix ? $"{category}{preFix} => {sb}" : $"{sb}";

            Trace.WriteLine(value);
            AsyncFormEventBus.Raise(new AsyncFormMessageEvent(value));
        }