static async Task MainAsync(string[] args) { manager = new Management.AutomationManager(); var parameters = new NetworkParameters(); parameters.ConnectionString = "HostName=AutomationSystemHub.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=oQnus5yhy5ybc10s8XidG1HOL+SQIRLTzNV7sY2Ba3Q="; parameters.ConsumerGroupName = "$Default"; parameters.DeviceName = "test"; parameters.StartTime = DateTime.Now;//Parse("2016-03-20 1:30:42Z"); var receiver = new NetworkReceiver(); receiver.MessageFeed = Digest; await receiver.Setup(parameters); sender = new NetworkSender(); sender.Setup(parameters); await receiver.Receive(); }
public void Connect() { SendSYN(); _receiver.Receive(); }