@@ -37,7 +37,7 @@ namespace Amazon.XRay.Recorder.Core
3737 public abstract class AWSXRayRecorderImpl : IAWSXRayRecorder
3838 {
3939 private static readonly Logger _logger = Logger . GetLogger ( typeof ( AWSXRayRecorderImpl ) ) ;
40- #if NET45
40+ #if NETFRAMEWORK
4141 private static Lazy < AWSXRayRecorder > _lazyDefaultRecorder = new Lazy < AWSXRayRecorder > ( ( ) => AWSXRayRecorderBuilder . GetDefaultBuilder ( ) . Build ( ) ) ;
4242 protected static Lazy < AWSXRayRecorder > LazyDefaultRecorder
4343 {
@@ -151,7 +151,7 @@ public ContextMissingStrategy ContextMissingStrategy
151151 /// <exception cref="ArgumentNullException">The argument has a null value.</exception>
152152 public void BeginSegment ( string name , string traceId = null , string parentId = null , SamplingResponse samplingResponse = null , DateTime ? timestamp = null )
153153 {
154- #if ! NET45
154+ #if ! NETFRAMEWORK
155155 if ( AWSXRayRecorder . IsLambda ( ) )
156156 {
157157 throw new UnsupportedOperationException ( "Cannot override Facade Segment. New segment not created." ) ;
@@ -193,7 +193,7 @@ public void BeginSegment(string name, string traceId = null, string parentId = n
193193 /// <exception cref="EntityNotAvailableException">Entity is not available in trace context.</exception>
194194 public void EndSegment ( DateTime ? timestamp = null )
195195 {
196- #if ! NET45
196+ #if ! NETFRAMEWORK
197197 if ( AWSXRayRecorder . IsLambda ( ) )
198198 {
199199 throw new UnsupportedOperationException ( "Cannot override Facade Segment. New segment not created." ) ;
@@ -727,7 +727,7 @@ protected void PopulateContexts()
727727 // Prepare XRay section for runtime context
728728 var xrayContext = new ConcurrentDictionary < string , string > ( ) ;
729729
730- #if NET45
730+ #if NETFRAMEWORK
731731 xrayContext [ "sdk" ] = "X-Ray for .NET" ;
732732#else
733733 xrayContext [ "sdk" ] = "X-Ray for .NET Core" ;
@@ -743,7 +743,7 @@ protected void PopulateContexts()
743743 }
744744
745745 RuntimeContext [ "xray" ] = xrayContext ;
746- #if NET45
746+ #if NETFRAMEWORK
747747 ServiceContext [ "runtime" ] = ".NET Framework" ;
748748#else
749749 ServiceContext [ "runtime" ] = ".NET Core Framework" ;
0 commit comments