@@ -223,8 +223,8 @@ public Optimizely(ProjectConfigManager configManager,
223
223
224
224
if ( ProjectConfigManager . SdkKey != null )
225
225
{
226
- NotificationCenterRegistry . GetNotificationCenter ( configManager . SdkKey , logger ) ? .
227
- AddNotification ( NotificationCenter . NotificationType . OptimizelyConfigUpdate ,
226
+ NotificationCenterRegistry . GetNotificationCenter ( configManager . SdkKey , logger )
227
+ ? . AddNotification ( NotificationCenter . NotificationType . OptimizelyConfigUpdate ,
228
228
( ) =>
229
229
{
230
230
projectConfig = ProjectConfigManager . CachedProjectConfig ;
@@ -268,9 +268,9 @@ private void InitializeComponents(IEventDispatcher eventDispatcher = null,
268
268
Logger ) ;
269
269
DefaultDecideOptions = defaultDecideOptions ?? new OptimizelyDecideOption [ ] { } ;
270
270
#if USE_ODP
271
- OdpManager = odpManager ?? new OdpManager . Builder ( ) . WithErrorHandler ( errorHandler ) .
272
- WithLogger ( logger ) .
273
- Build ( ) ;
271
+ OdpManager = odpManager ?? new OdpManager . Builder ( ) . WithErrorHandler ( errorHandler )
272
+ . WithLogger ( logger )
273
+ . Build ( ) ;
274
274
#endif
275
275
}
276
276
@@ -441,8 +441,8 @@ private Variation GetVariation(string experimentKey, string userId, ProjectConfi
441
441
userAttributes = userAttributes ?? new UserAttributes ( ) ;
442
442
443
443
var userContext = CreateUserContextCopy ( userId , userAttributes ) ;
444
- var variation = DecisionService . GetVariation ( experiment , userContext , config ) ? .
445
- ResultObject ;
444
+ var variation = DecisionService . GetVariation ( experiment , userContext , config )
445
+ ? . ResultObject ;
446
446
var decisionInfo = new Dictionary < string , object >
447
447
{
448
448
{ "experimentKey" , experimentKey } , { "variationKey" , variation ? . Key } ,
@@ -552,8 +552,8 @@ public virtual bool IsFeatureEnabled(string featureKey, string userId,
552
552
var sourceInfo = new Dictionary < string , string > ( ) ;
553
553
var decision = DecisionService . GetVariationForFeature ( featureFlag ,
554
554
CreateUserContextCopy ( userId , userAttributes ) ,
555
- config ) .
556
- ResultObject ;
555
+ config )
556
+ . ResultObject ;
557
557
var variation = decision ? . Variation ;
558
558
var decisionSource = decision ? . Source ?? FeatureDecision . DECISION_SOURCE_ROLLOUT ;
559
559
@@ -664,8 +664,8 @@ public virtual T GetFeatureVariableValueForType<T>(string featureKey, string var
664
664
var variableValue = featureVariable . DefaultValue ;
665
665
var decision = DecisionService . GetVariationForFeature ( featureFlag ,
666
666
CreateUserContextCopy ( userId , userAttributes ) ,
667
- config ) .
668
- ResultObject ;
667
+ config )
668
+ . ResultObject ;
669
669
670
670
if ( decision ? . Variation != null )
671
671
{
@@ -980,9 +980,9 @@ OptimizelyDecideOption[] options
980
980
featureEnabled ) ;
981
981
}
982
982
983
- var reasonsToReport = decisionReasons .
984
- ToReport ( allOptions . Contains ( OptimizelyDecideOption . INCLUDE_REASONS ) ) .
985
- ToArray ( ) ;
983
+ var reasonsToReport = decisionReasons
984
+ . ToReport ( allOptions . Contains ( OptimizelyDecideOption . INCLUDE_REASONS ) )
985
+ . ToArray ( ) ;
986
986
var variationKey = decision ? . Variation ? . Key ;
987
987
988
988
// TODO: add ruleKey values when available later. use a copy of experimentKey until then.
@@ -1349,8 +1349,7 @@ List<OdpSegmentOption> segmentOptions
1349
1349
1350
1350
if ( config == null )
1351
1351
{
1352
- Logger . Log ( LogLevel . ERROR ,
1353
- "Datafile has invalid format. Failing 'FetchQualifiedSegments'." ) ;
1352
+ Logger . Log ( LogLevel . ERROR , "Datafile has invalid format. Failing 'FetchQualifiedSegments'." ) ;
1354
1353
return null ;
1355
1354
}
1356
1355
@@ -1381,8 +1380,7 @@ internal void IdentifyUser(string userId)
1381
1380
/// <param name="identifiers">Dictionary for identifiers. The caller must provide at least one key-value pair.</param>
1382
1381
/// <param name="type">Type of event (defaults to `fullstack`)</param>
1383
1382
/// <param name="data">Optional event data in a key-value pair format</param>
1384
- public void SendOdpEvent ( string action , Dictionary < string , string > identifiers ,
1385
- string type = Constants . ODP_EVENT_TYPE ,
1383
+ public void SendOdpEvent ( string action , Dictionary < string , string > identifiers , string type = Constants . ODP_EVENT_TYPE ,
1386
1384
Dictionary < string , object > data = null
1387
1385
)
1388
1386
{
0 commit comments