Пример #1
0
 public EventSender(Device device, SimulatorConfiguration config, Func<object,byte[]> serializer)
 {
     _serializer = serializer;
     var connectionString = ServiceBusConnectionStringBuilder.CreateUsingSharedAccessSignature(
         device.Endpoint, device.EventHubName, device.Id, device.Token);
     _eventHubSender = EventHubSender.CreateFromConnectionString(connectionString);
 }
Пример #2
0
        public SimulationProfile(
            string hostName,
            SimulatorConfiguration simulatorConfiguration)
        {
            Guard.ArgumentNotNullOrEmpty(hostName, "hostName");
            Guard.ArgumentNotNull(simulatorConfiguration, "simulatorConfiguration");

            _hostName = hostName;
            _simulatorConfiguration = simulatorConfiguration;
        }