File tree Expand file tree Collapse file tree
NuGet.Services.Validation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net472</ TargetFramework >
4+ <TargetFrameworks >net472;netstandard2.1</ TargetFrameworks >
55 <PackageVersion Condition =" '$(PackageVersion)' == ''" >$(CommonPackageVersion)</PackageVersion >
66 <Description >Shared server-side storage component for NuGet services</Description >
77 </PropertyGroup >
Original file line number Diff line number Diff line change 1- // Copyright (c) .NET Foundation. All rights reserved.
1+ // Copyright (c) .NET Foundation. All rights reserved.
22// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
44using System . Data . Entity ;
55using System . Data . Entity . Infrastructure ;
66using System . Data . Entity . SqlServer ;
7+ #if NETFRAMEWORK
78using System . Runtime . Remoting . Messaging ;
9+ #endif
810
911namespace NuGet . Services . Validation
1012{
1113 public class EntitiesConfiguration : DbConfiguration
1214 {
15+ #if NETFRAMEWORK
1316 public EntitiesConfiguration ( )
1417 {
1518 // Configure Connection Resiliency / Retry Logic
@@ -24,5 +27,11 @@ public static bool SuspendExecutionStrategy
2427 get => ( bool ? ) CallContext . LogicalGetData ( "SuspendExecutionStrategy" ) ?? false ;
2528 set => CallContext . LogicalSetData ( "SuspendExecutionStrategy" , value ) ;
2629 }
30+ #else
31+ public EntitiesConfiguration ( )
32+ {
33+ SetExecutionStrategy ( "System.Data.SqlClient" , ( ) => new SqlAzureExecutionStrategy ( ) ) ;
34+ }
35+ #endif
2736 }
2837}
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net472</ TargetFramework >
4+ <TargetFrameworks >net472;netstandard2.1</ TargetFrameworks >
55 <PackageVersion Condition =" '$(PackageVersion)' == ''" >$(CommonPackageVersion)</PackageVersion >
66 <Description >Logic shared between the front-end and back-end concerning asynchronous validation</Description >
77
You can’t perform that action at this time.
0 commit comments