Ejemplo n.º 1
0
        public static void Send(VendorCommand vendorCommand)
        {
            CloudStorageAccount storageAccount = CloudStorageAccount.Parse(_ConnectionString);
            CloudQueueClient    queueClient    = storageAccount.CreateCloudQueueClient();
            CloudQueue          queue          = queueClient.GetQueueReference(vendorCommand.QueueName);

            queue.CreateIfNotExistsAsync().Wait();

            CloudQueueMessage message = new CloudQueueMessage(Newtonsoft.Json.JsonConvert.SerializeObject(vendorCommand));

            queue.AddMessageAsync(message);
        }
Ejemplo n.º 2
0
 public Root(
     VendorCommand vendor,
     InvoiceCommand invoice,
     GLAccountCommand glaccount,
     VatCodeCommand vatcode,
     CompanyCommand company,
     CredentialsCommand credentials)
 {
     Add(vendor);
     Add(invoice);
     Add(glaccount);
     Add(vatcode);
     Add(credentials);
     Add(company);
     Add(new Option <bool>("--debug", "Run command in debug mode to view detailed logs"));
 }