static void RequestSignature(int times) { string[] waivers = new[] { "Reason 1", "Reason 2", "Reason x" }; for (int i = 0; i < times; i++) { Console.WriteLine("Requesting Signature # {0} of {1}...", (i + 1).ToString(), times); try { using (var client = new SignatureServiceClient()) { string result = client.GetSignature("Test User " + (i + 1).ToString(), waivers); Console.WriteLine("Response: {0}", result); } } catch (Exception ex) { Console.WriteLine("Error: {0}", ex.Message); ShowCaseUtil.Logger.LogError("Signature # " + (i + 1).ToString() + " failed", ex); } } SignatureServiceClient.CloseProcess(); }
static void Main(String[] arguments) { var blobAddress = "http://127.0.0.1:10000/devstoreaccount1/"; String sas = null; using (var sasClient = new SignatureServiceClient()) { Console.Write("User: "******"Password: "******"Sas = " + sas); var storage = new Storage(blobAddress, new StorageCredentialsSharedAccessSignature(sas)); new CommandStore().Execute(storage, arguments); }