-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ports Fix deadlock in transaction (#1242) to .NET #2161
Changes from 4 commits
e2514f7
7e8de0b
052d1f7
0469097
4aea3c5
d1f1ad4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -439,6 +439,17 @@ public static bool IsTargetReadyForAeWithKeyStore() | |
; | ||
} | ||
|
||
public static bool IsSupportingDistributedTransactions() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to use the same |
||
{ | ||
#if NET7_0_OR_GREATER | ||
return OperatingSystem.IsWindows() && IsNotAzureServer(); | ||
danielmarbach marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#elif NETFRAMEWORK | ||
return System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows) && IsNotAzureServer(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: .NET Framework is not built/tested on non-windows, so platform check can be avoided. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't it safer to leave it as is? Happy to change it if you wish so
danielmarbach marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#else | ||
return false; | ||
#endif | ||
} | ||
|
||
public static bool IsUsingManagedSNI() => UseManagedSNIOnWindows; | ||
|
||
public static bool IsNotUsingManagedSNIOnWindows() => !UseManagedSNIOnWindows; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decided to use fully qualified names here to avoid having to do
if/def
in the using section