Exemplo n.º 1
0
 private static void SendMessageToQueue(GameUpdateResult gamedetails)
 {
     using (IQueueConnector queueConnector = new AzureServiceBusConnector())
     {
         queueConnector.SendMessage(gamedetails);
     }
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            RESTClient client   = new RESTClient();
            var        response = client.GetLiveScores();

            //using (IQueueConnector queueConnector = new AzureServiceBusConnector())
            //{
            IQueueConnector queueConnector = new AzureServiceBusConnector();

            queueConnector.SendMessage(response);
            //}
        }