Exemplo n.º 1
0
        public Task StandardLog(IStandardLog message)
        {
            StandardLog Message = new StandardLog(message.Severity, message.Source, message.Message, message.Exception);

            PrintLog(Message);
            return(Task.CompletedTask);
        }
Exemplo n.º 2
0
        public Fruit(string colour)

        {
            this.colour = colour;
            GetFruitNameAndPrice();
            standardLog = new StandardLog(StandardLog.LogCode.Success);
        }
Exemplo n.º 3
0
        public Veg(string eventType)

        {
            this.EventType = eventType;
            this.colour    = "Yellow";
            GetFruitNameAndPrice();
            standardLog = new StandardLog(StandardLog.LogCode.Success);
            a           = "a";
            b           = "b";
            c           = 1;
        }
Exemplo n.º 4
0
        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");
        }
Exemplo n.º 5
0
 /// <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);
 }