Beispiel #1
0
        public static void LogInfo(string msg)
        {
            TableClient client = new TableClient(_TableName);

            Models.LogEntry l = new Models.LogEntry("0", Convert.ToString(Guid.NewGuid()));

            l.Level = "Info";
            l.Message = msg;
            l.Source = "System";
            client.InsertRow(l);
        }
Beispiel #2
0
        public static void CreateMessage(Models.MessageEntity entity)
        {
            Contracts.MessageContract contract = new Contracts.MessageContract(entity.RowKey, entity.PartitionKey);

            TableClient client = new TableClient(_TableName);
            QueueClient qclient = new QueueClient();

            Console.WriteLine("Inserting Entity");
            entity.ModifiedOn = System.DateTime.Now.ToString();
            client.InsertRow(entity);

            Console.WriteLine("Inserting Queue Msg");
            qclient.Send(contract);
        }