public void SendData(CallClass call)
 {
     call.timecreated = DateTime.UtcNow.ToString("o");
     sendMessage(call.ToJson());
 }
        private void sendToAzure(string sended)
        {
            CallClass cc = new CallClass();
            cc.value = sended;
            cc.guid = Guid.NewGuid().ToString();

            ctdHelper = new ConnectTheDotsHelper(serviceBusNamespace: "elevatorIoT",
                eventHubName: "elevatorEH",
                keyName: "elevatorSEND",
                key: "POoyLPA/J8Qad82M2eaUL097T7FooJePJ4va1n4irAY=",
                call: sended);

            ctdHelper.SendData(cc);
        }
 public void SendData(CallClass call)
 {
     call.timecreated = DateTime.UtcNow.ToString("o");
     sendMessage(call.ToJson());
 }