public void QueueIfExistsShouldNotHitSecondary() { AssertSecondaryEndpoint(); QueueRequestOptions options = new QueueRequestOptions(); CloudQueueClient client = GenerateCloudQueueClient(); CloudQueue queue = client.GetQueueReference(QueueTestBase.GenerateNewQueueName()); TestPrimaryOnlyCommand((opt, ctx) => queue.CreateIfNotExists(opt, ctx), options); TestPrimaryOnlyCommand((opt, ctx) => queue.EndCreateIfNotExists(queue.BeginCreateIfNotExists(opt, ctx, null, null)), options); TestPrimaryOnlyCommand((opt, ctx) => queue.DeleteIfExists(opt, ctx), options); TestPrimaryOnlyCommand((opt, ctx) => queue.EndDeleteIfExists(queue.BeginDeleteIfExists(opt, ctx, null, null)), options); }