Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/AgDatabaseMove.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@
</Reference>
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="AgDatabaseMove.Unit" />
</ItemGroup>

</Project>
3 changes: 1 addition & 2 deletions src/SmoFacade/Listener.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("AgDatabaseMove.Unit")]
namespace AgDatabaseMove.SmoFacade
{
using System;
Expand Down Expand Up @@ -147,7 +146,7 @@ private static Server AgInstanceNameToServer(ref SqlConnectionStringBuilder conn

/// <summary>
/// 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
/// </summary>
/// <param name="agReplicaInstanceName"> The name for an instance within the AG (for which we are trying to get the FQDN)</param>
Expand Down