public Task StandardLog(IStandardLog message) { StandardLog Message = new StandardLog(message.Severity, message.Source, message.Message, message.Exception); PrintLog(Message); return(Task.CompletedTask); }
public Fruit(string colour) { this.colour = colour; GetFruitNameAndPrice(); standardLog = new StandardLog(StandardLog.LogCode.Success); }
public Veg(string eventType) { this.EventType = eventType; this.colour = "Yellow"; GetFruitNameAndPrice(); standardLog = new StandardLog(StandardLog.LogCode.Success); a = "a"; b = "b"; c = 1; }
public Fruit(string eventType) { this.EventType = eventType; this.colour = "Yellow"; GetFruitNameAndPrice(); standardLog = new StandardLog(StandardLog.LogCode.Success); this.testjson = new Dictionary <string, string>(); testjson.Add("a", "1"); testjson.Add("b", "2"); testjson.Add("c", "3"); }
/// <summary> /// Task that if events are subscribed to, will print the contents of the log to the console. /// </summary> /// <param name='message'><c>StandardLog</c> to be printed to the console.</param> public Task StandardLog(StandardLog message) { PrintLog(message); return(Task.CompletedTask); }