创建 Azure 调度程序 SchedulerClient 时出现问题 class

Issue creating Azure scheduler SchedulerClient class

创建 SchedulerClient 的新实例时有一个名为 cloudServiceName 的参数,但没有关于该值来源的可用文档,而且 Azure 门户也没有帮助。

这是我目前的代码:

var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadWrite);
var certificate = store.Certificates.Find(X509FindType.FindByThumbprint, "[Thumbprint]", false)[0];
store.Close();
var cloudCreds = new CertificateCloudCredentials("[MySubscriptionId]", certificate);
var client = new SchedulerClient("[Where do I find this value]", "MyJobCollection", cloudCreds);

您必须使用旧版本的调度程序 SDK。请找到最新的 SDK here.

我们也有上述 SDK 的代码示例: https://github.com/Azure-Samples/scheduler-dotnet-getting-started