Skip to content

Commit 7406d8f

Browse files
method is not exposed for .net3.5 and 4.0 (#239)
1 parent 296e413 commit 7406d8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

OptimizelySDK/OptimizelyFactory.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public static Optimizely NewDefaultInstance()
8383
.WithFormat(httpProjectConfigElement.Format)
8484
.WithPollingInterval(TimeSpan.FromMilliseconds(httpProjectConfigElement.PollingInterval))
8585
.WithBlockingTimeoutPeriod(TimeSpan.FromMilliseconds(httpProjectConfigElement.BlockingTimeOutPeriod))
86+
#if !NET40 && !NET35
8687
.WithAccessToken(httpProjectConfigElement.DatafileAccessToken)
88+
#endif
8789
.WithLogger(logger)
8890
.WithErrorHandler(errorHandler)
8991
.WithNotificationCenter(notificationCenter)
@@ -109,7 +111,7 @@ public static Optimizely NewDefaultInstance()
109111
}
110112
#endif
111113

112-
public static Optimizely NewDefaultInstance(string sdkKey)
114+
public static Optimizely NewDefaultInstance(string sdkKey)
113115
{
114116
return NewDefaultInstance(sdkKey, null);
115117
}

0 commit comments

Comments
 (0)