From 821acddb7e4785d342cd5f0cafc1c6508280f892 Mon Sep 17 00:00:00 2001 From: peterstone2017 <12449837+YunchuWang@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:33:51 -0800 Subject: [PATCH] fix --- src/Worker/AzureManaged/DurableTaskSchedulerWorkerOptions.cs | 4 ++-- .../DurableTaskSchedulerClientExtensionsTests.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Worker/AzureManaged/DurableTaskSchedulerWorkerOptions.cs b/src/Worker/AzureManaged/DurableTaskSchedulerWorkerOptions.cs index a7f79510..df704207 100644 --- a/src/Worker/AzureManaged/DurableTaskSchedulerWorkerOptions.cs +++ b/src/Worker/AzureManaged/DurableTaskSchedulerWorkerOptions.cs @@ -79,8 +79,8 @@ internal static DurableTaskSchedulerWorkerOptions FromConnectionString( /// A configured instance that can be used to make gRPC calls. public GrpcChannel CreateChannel() { - Check.NotNullOrEmpty(this.EndpointAddress, nameof(this.EndpointAddress)); - Check.NotNullOrEmpty(this.TaskHubName, nameof(this.TaskHubName)); + Verify.NotNull(this.EndpointAddress, nameof(this.EndpointAddress)); + Verify.NotNull(this.TaskHubName, nameof(this.TaskHubName)); string taskHubName = this.TaskHubName; string endpoint = !this.EndpointAddress.Contains("://") ? $"https://{this.EndpointAddress}" diff --git a/test/Client/AzureManaged.Tests/DurableTaskSchedulerClientExtensionsTests.cs b/test/Client/AzureManaged.Tests/DurableTaskSchedulerClientExtensionsTests.cs index e05e352e..f9131c34 100644 --- a/test/Client/AzureManaged.Tests/DurableTaskSchedulerClientExtensionsTests.cs +++ b/test/Client/AzureManaged.Tests/DurableTaskSchedulerClientExtensionsTests.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. +using System.ComponentModel.DataAnnotations; using Azure.Core; using Azure.Identity; using FluentAssertions; @@ -10,7 +11,6 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; using Moq; -using System.ComponentModel.DataAnnotations; using Xunit; namespace Microsoft.DurableTask.Client.AzureManaged.Tests;