Exemplo n.º 1
0
        private static void ProcessGenerateOptions(GenerateDataOptions options)
        {
            var details = new EventHubConnectionDetails(options.EventHubNamespace, options.EventHubName, options.EventHubSasPolicy, options.EventHubSasKey);

            var deviceDetails = GetDeviceDetails();

            var generator = new MessageGenerator(deviceDetails, details);
            generator.GenerateMessages();
        }
Exemplo n.º 2
0
        private static void ProcessGenerateOptions(GenerateDataOptions options)
        {
            var details = new EventHubConnectionDetails(options.EventHubNamespace, options.EventHubName, options.EventHubSasPolicy, options.EventHubSasKey);

            var deviceDetails = GetDeviceDetails();

            var generator = new MessageGenerator(deviceDetails, details);

            generator.GenerateMessages();
        }
Exemplo n.º 3
0
 public Options()
 {
     // Since we create this instance the parser will not overwrite it
     GenerateDataVerb        = new GenerateDataOptions();
     ReplayVerb              = new ReplayOptions();
     GenerateLocalUploadVerb = new GenerateLocalUploadOptions();
     LocalVerb  = new GenerateLocalDataOptions();
     UploadVerb = new UploadDataOptions();
     CreateVerb = new CreateEventHubConsumerGroupOptions();
 }
 public Options()
 {
     // Since we create this instance the parser will not overwrite it
     GenerateDataVerb = new GenerateDataOptions();
     ReplayVerb = new ReplayOptions();
     GenerateLocalUploadVerb = new GenerateLocalUploadOptions();
     LocalVerb = new GenerateLocalDataOptions();
     UploadVerb = new UploadDataOptions();
     CreateVerb = new CreateEventHubConsumerGroupOptions();
 }