From 0bfa8a319f5d462fa929f84629669f0bdb8198db Mon Sep 17 00:00:00 2001 From: AdityaNPL Date: Thu, 11 Mar 2021 17:11:54 +0000 Subject: [PATCH] refactor(listener): internalsVisibleTo moved to csproj and small changes in comments --- src/AgDatabaseMove.csproj | 4 ++++ src/SmoFacade/Listener.cs | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/AgDatabaseMove.csproj b/src/AgDatabaseMove.csproj index 54e55af..a2a6c5b 100755 --- a/src/AgDatabaseMove.csproj +++ b/src/AgDatabaseMove.csproj @@ -40,4 +40,8 @@ + + + + diff --git a/src/SmoFacade/Listener.cs b/src/SmoFacade/Listener.cs index 4eaf9dc..6dea34e 100755 --- a/src/SmoFacade/Listener.cs +++ b/src/SmoFacade/Listener.cs @@ -1,4 +1,3 @@ -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("AgDatabaseMove.Unit")] namespace AgDatabaseMove.SmoFacade { using System; @@ -147,7 +146,7 @@ private static Server AgInstanceNameToServer(ref SqlConnectionStringBuilder conn /// /// Resolves 'agReplicaInstanceName' to a FQDN - /// However on Unix OS, when 'val' in 'Dns.GetHostEntry(val)' is not a complete domain (i.e is just "abc", instead of "abc.def.com"), it fails intermittently + /// However on Unix OS, when 'val' in 'Dns.GetHostEntry(val)' is not a FQDN, it fails intermittently /// Therefore, if dns lookup on just the instance name fails, we retry after appending the domain fragments from the listener to the instance name /// /// The name for an instance within the AG (for which we are trying to get the FQDN)