private void button2_Click(object sender, EventArgs e) { var uri = "https://uneidelIOT.azure-devices.net/devices?top=1000&api-version=2016-02-03"; var uri2 = uri.Substring(0, uri.IndexOf(".net/") + 4); var expiry = EpochGenerator.GetEpochTime(1).ToString(); var key = "xb/V9xU916krRjPxukmZCRSRoIx+nAuNl9Cw8Y3dWP0="; var policyName = "iothubowner"; var SasToken = txtResult.Text; DownloadIdentitiesFromRest(uri, SasToken); }
private void Form1_Load(object sender, EventArgs e) { txtEpochTime.Text = EpochGenerator.GetEpochTime(3).ToString(); }