November 7th, 2024
- Added support for batch processing in
DecideAll
andDecideForKeys
, enabling more efficient handling of multiple decisions in the User Profile Service. (#375)
- GitHub Actions YAML files vulnerable to script injections (#372)
January 16th, 2024
The 4.0.0 release introduces a new primary feature, Advanced Audience Targeting enabled through integration with Optimizely Data Platform (ODP) ( #305, #310, #311, #315, #321, #322, #323, #324 ).
You can use ODP, a high-performance Customer Data Platform (CDP), to easily create complex real-time segments (RTS) using first-party and 50+ third-party data sources out of the box. You can create custom schemas that support the user attributes important for your business, and stitch together user behavior done on different devices to better understand and target your customers for personalized user experiences. ODP can be used as a single source of truth for these segments in any Optimizely or 3rd party tool.
With ODP accounts integrated into Optimizely projects, you can build audiences using segments pre-defined in ODP. The SDK will fetch the segments for given users and make decisions using the segments. For access to ODP audience targeting in your Feature Experimentation account, please contact your Optimizely Customer Success Manager.
This version includes the following changes:
- New API added to
OptimizelyUserContext
:FetchQualifiedSegments()
: this API will retrieve user segments from the ODP server. The fetched segments will be used for audience evaluation. The fetched data will be stored in the local cache to avoid repeated network delays.- When an
OptimizelyUserContext
is created, the SDK will automatically send an identify request to the ODP server to facilitate observing user activities.
- New APIs added to
OptimizelyClient
:SendOdpEvent()
: customers can build/send arbitrary ODP events that will bind user identifiers and data to user profiles in ODP.
For details, refer to our documentation pages:
- Advanced Audience Targeting
- Server SDK Support
- Initialize C# SDK
- OptimizelyUserContext C# SDK
- Advanced Audience Targeting segment qualification methods
- Send Optimizely Data Platform data using Advanced Audience Targeting
Add warning to polling intervals below 30 seconds (#365)
OdpManager
in the SDK is enabled by default. Unless an ODP account is integrated into the Optimizely projects, mostOdpManager
functions will be ignored. If needed,OdpManager
can be disabled whenOptimizelyClient
is instantiated.ProjectConfigManager
interface additions + implementing class updatesEvaluate()
updates inBaseCondition
- Return Latest Experiment When Duplicate Keys in Config enhancement
July 26th, 2023
- Fix Last-Modified date & time format for If-Modified-Since (#361)
July 18th, 2023
- Last-Modified in header not found and used to reduce polling payload (#355).
April 28th, 2023
The 4.0.0-beta release introduces a new primary feature, Advanced Audience Targeting enabled through integration with Optimizely Data Platform (ODP) ( #305, #310, #311, #315, #321, #322, #323, #324 ).
You can use ODP, a high-performance Customer Data Platform (CDP), to easily create complex real-time segments (RTS) using first-party and 50+ third-party data sources out of the box. You can create custom schemas that support the user attributes important for your business, and stitch together user behavior done on different devices to better understand and target your customers for personalized user experiences. ODP can be used as a single source of truth for these segments in any Optimizely or 3rd party tool.
With ODP accounts integrated into Optimizely projects, you can build audiences using segments pre-defined in ODP. The SDK will fetch the segments for given users and make decisions using the segments. For access to ODP audience targeting in your Feature Experimentation account, please contact your Optimizely Customer Success Manager.
This version includes the following changes:
- New API added to
OptimizelyUserContext
:FetchQualifiedSegments()
: this API will retrieve user segments from the ODP server. The fetched segments will be used for audience evaluation. The fetched data will be stored in the local cache to avoid repeated network delays.- When an
OptimizelyUserContext
is created, the SDK will automatically send an identify request to the ODP server to facilitate observing user activities.
- New APIs added to
OptimizelyClient
:SendOdpEvent()
: customers can build/send arbitrary ODP events that will bind user identifiers and data to user profiles in ODP.
For details, refer to our documentation pages:
- Advanced Audience Targeting
- Server SDK Support
- Initialize C# SDK
- OptimizelyUserContext C# SDK
- Advanced Audience Targeting segment qualification methods
- Send Optimizely Data Platform data using Advanced Audience Targeting
OdpManager
in the SDK is enabled by default. Unless an ODP account is integrated into the Optimizely projects, mostOdpManager
functions will be ignored. If needed,OdpManager
can be disabled whenOptimizelyClient
is instantiated.ProjectConfigManager
interface additions + implementing class updatesEvaluate()
updates inBaseCondition
March 15th, 2023
- Update README.md and other non-functional code to reflect that this SDK supports both Optimizely Feature Experimentation and Optimizely Full Stack. (#331, #332).
- Fix for incorrect documentation on Optimizely.IsFeatureEnabled (#304)
July 27th, 2022
- Handle possible empty string
rolloutId
in datafile (#304)
January 6th, 2022
- Add a set of new APIs for overriding and managing user-level flag, experiment and delivery rule decisions. These methods can be used for QA and automated testing purposes. They are an extension of the OptimizelyUserContext interface (#285, #292)
- SetForcedDecision
- GetForcedDecision
- RemoveForcedDecision
- RemoveAllForcedDecisions
- For details, refer to our documentation pages: OptimizelyUserContext and Forced Decision methods.
September 16th, 2021
-
Add new public properties to
OptimizelyConfig
. (#265, #266, #273, #276, #279)- SDKKey
- EnvironmentKey
- Attributes
- Audiences
- Events
- ExperimentRules and DeliveryRules to OptimizelyFeature
- Audiences to OptimizelyExperiment
-
For details, refer to our documentation page: https://docs.developers.optimizely.com/full-stack/v4.0/docs/optimizelyconfig-csharp.
-
Add new methods in
OptimizelyFactory
class. (#264)- SetBlockingTimeOutPeriod
- SetPollingInterval
-
Add virtual methods to support mocking in
OptimizelyUserContext
(#280)
OptimizelyFeature.ExperimentsMap
ofOptimizelyConfig
is deprecated as of this release. Please useOptimizelyFeature.ExperimentRules
andOptimizelyFeature.DeliveryRules
. (#276)
July 16th, 2021
- Duplicate experiment key issue with multiple feature flags. While trying to get variation from the variationKeyMap, it was unable to find because the latest experimentKey was overriding the previous one. #267
March 29th, 2021
- When no error handler is given for HttpProjectConfigManager, then default error handler should be used without raise exception. #260
- .Net Standard 2.0 was missing Configuration manager library in nugget package. #262
February 16th, 2021
-
Introducing a new primary interface for retrieving feature flag status, configuration and associated experiment decisions for users (#248, #250, #251, #253, #254, #255, #256, #257, #258). The new
OptimizelyUserContext
class is instantiated withCreateUserContext
and exposes the following APIs to getOptimizelyDecision
:- SetAttribute
- GetAttributes
- Decide
- DecideAll
- DecideForKeys
- TrackEvent
-
For details, refer to our documentation page: https://docs.developers.optimizely.com/full-stack/v4.0/docs/csharp-sdk.
- Disposed during inflight request of datafile was causing issues in the PollingProjectConfigManager. (#258)
November 18th, 2020
- Add "enabled" field to decision metadata structure. (#249)
November 3rd, 2020
- Add support for sending flag decisions along with decision metadata. (#244)
October 1st, 2020
-
Add support for version audience condition which follows the semantic version (http://semver.org) (#236, #242)
-
Add support for datafile accessor #240.
-
datafileAccessToken
supported fromApp.config
(#237)
- No rollout rule in datafile, should return false when
IsFeatureEnabled
is called. (#235) NewDefaultInstance
method ofOptimizelyFactory
class, set ErrorHandler not to raise exception while handling error (#241)- Audience evaluation logs revised (#229)
July 7th, 2020
- Add support for JSON feature variables. (#214, #216, #217)
- Add support for authenticated datafiles. (#222)
- Add gzip support for framework 4.5 or above. (#218)
- Adjust audience evaluation log level to debug. (#221)
April 29th, 2020
- Change FeatureVariable type from enum to string for forward compatibility. #211
- GetFeatureVariableDouble was returning 0 for FR culture. Fixed this issue by returning Invariant culture. #209
January 23rd, 2020
- Added a new API to get a project configuration static data.
- Call
GetOptimizelyConfig()
to get a snapshot copy of project configuration static data. - It returns an
OptimizelyConfig
instance which includes a datafile revision number, all experiments, and feature flags mapped by their key values. - Added caching for
GetOptimizelyConfig
-OptimizelyConfig
object will be cached and reused for the lifetime of the datafile - For details, refer to a documentation page: https://docs.developers.optimizely.com/full-stack/docs/optimizelyconfig-csharp
- Call
- Blocking timeout was not being assigned. When not providing any value, it was just logging not setting up periodinterval and blocking timeout value. #202
September 26th, 2019
- Configuration manager is set to PollingProjectConfigManager and for datafile will be started by default. Requests to download and update datafile are made in a separate thread and are scheduled with fixed delay.
- Added support for event batching via the event processor.
- Events generated by methods like
Activate
,Track
, andIsFeatureEnabled
will be held in a queue until the configured batch size is reached, or the configured flush interval has elapsed. Then, they will be combined into a request and sent to the event dispatcher. - To configure event batching, set the
MaxEventBatchSize
andMaxEventFlushInterval
properties in theOptimizelyFactory
usingOptimizelyFactory.SetBatchSize(int batchSize)
andOptimizelyFactory.SetFlushInterval(TimeSpan flushInterval)
and then creating usingOptimizelyFactory.NewDefaultInstance
. - Event batching is enabled by default.
eventBatchSize
defaults to10
.eventFlushInterval
defaults to30000
milliseconds. - Updated the
Dispose
method representing the process of closing the instance. WhenDispose
is called, any events waiting to be sent as part of a batched event request will be immediately batched and sent to the event dispatcher. - If any such requests were sent to the event dispatcher,
Stop
waits for providedTimeoutInterval
before stopping, so that events get successfully dispatched. OptimizelyFactory
now provides support of setting configuration variables from App.config, User will now be able to provide configuration variables ofHttpConfigManager
andBatchEventProcessor
in App.config. Steps of usage are provided in README.md.
EventBuilder
was deprecated and now we will be usingUserEventFactory
andEventFactory
to create LogEvent Object.- Deprecated
Track
notifications in favor of explicitLogEvent
notification. - New features will no longer be supported on
.net standard 1.6
and.net 3.5
July 22nd, 2019
- Added support for automatic datafile management via
HttpProjectConfigManager
for framework 4.0 or above:- The
HttpProjectConfigManager
is an implementation of the abstractPollingProjectConfigManager
class.- Users must first build the
HttpProjectConfigManager
with an SDK key and then and provide that instance to theOptimizely
instance. - An initial datafile can be provided to the
HttpProjectConfigManager
to bootstrap before making HTTP requests for the hosted datafile. - Requests for the datafile are made in a separate thread and are scheduled with fixed delay.
- Configuration updates can be subscribed to via the NotificationCenter built with the
HttpProjectConfigManager
. Optimizely
instance must be disposed after the use orHttpProjectConfigManager
must be disposed after the use to release resources.
- Users must first build the
- The
- The
OptimizelyFactory
provides basic methods for instantiating the Optimizely SDK with a minimal number of parameters. CheckREADME.md
for more details.
June 19th, 2019
- Build OptimizelySDK.NetStandard16.dll in Release mode
May 9th, 2019
- Introduced Decision notification listener to be able to record:
- Variation assignments for users activated in an experiment.
- Feature access for users.
- Feature variable value for users.
- Feature variable APIs return default variable value when featureEnabled property is false. (#151)
- Activate notification listener is deprecated as of this release. Recommendation is to use the new Decision notification listener. Activate notification listener will be removed in the next major release.
March 1st, 2019
The 3.0 release improves event tracking and supports additional audience targeting functionality.
- Event tracking:
- The
track
method now dispatches its conversion event unconditionally, without first determining whether the user is targeted by a known experiment that uses the event. This may increase outbound network traffic. - In Optimizely results, conversion events sent by 3.0 SDKs don't explicitly name the experiments and variations that are currently targeted to the user. Instead, conversions are automatically attributed to variations that the user has previously seen, as long as those variations were served via 3.0 SDKs or by other clients capable of automatic attribution, and as long as our backend actually received the impression events for those variations.
- Altogether, this allows you to track conversion events and attribute them to variations even when you don't know all of a user's attribute values, and even if the user's attribute values or the experiment's configuration have changed such that the user is no longer affected by the experiment. As a result, you may observe an increase in the conversion rate for previously-instrumented events. If that is undesirable, you can reset the results of previously-running experiments after upgrading to the 3.0 SDK.
- This will also allow you to attribute events to variations from other Optimizely projects in your account, even though those experiments don't appear in the same datafile.
- Note that for results segmentation in Optimizely results, the user attribute values from one event are automatically applied to all other events in the same session, as long as the events in question were actually received by our backend. This behavior was already in place and is not affected by the 3.0 release.
- The
- Support for all types of attribute values, not just strings.
- All values are passed through to notification listeners.
- Strings, booleans, and valid numbers are passed to the event dispatcher and can be used for Optimizely results segmentation. A valid number is a finite number in the inclusive range [-2⁵³, 2⁵³].
- Strings, booleans, and valid numbers are relevant for audience conditions.
- Support for additional matchers in audience conditions:
- An
exists
matcher that passes if the user has a non-null value for the targeted user attribute and fails otherwise. - A
substring
matcher that resolves if the user has a string value for the targeted attribute. gt
(greater than) andlt
(less than) matchers that resolve if the user has a valid number value for the targeted attribute. A valid number is a finite number in the inclusive range [-2⁵³, 2⁵³].- The original (
exact
) matcher can now be used to target booleans and valid numbers, not just strings.
- An
- Support for A/B tests, feature tests, and feature rollouts whose audiences are combined using
"and"
and"not"
operators, not just the"or"
operator. - Datafile-version compatibility check: The SDK will remain uninitialized (i.e., will gracefully fail to activate experiments and features) if given a datafile version greater than 4.
- Updated Pull Request template and commit message guidelines.
- Conversion events sent by 3.0 SDKs don't explicitly name the experiments and variations that are currently targeted to the user, so these events are unattributed in raw events data export. You must use the new results export to determine the variations to which events have been attributed.
UserAttributes
objects, which are passed to API methods and returned to notification listeners, can now contain non-string values. More concretely,UserAttributes
now extendsDictionary<string, object>
instead ofDictionary<string, string>
.
- Experiments and features can no longer activate when a negatively targeted attribute has a missing, null, or malformed value. (#132)
- Audience conditions (except for the new
exists
matcher) no longer resolve tofalse
when they fail to find an legitimate value for the targeted user attribute. The result remainsnull
(unknown). Therefore, an audience that negates such a condition (using the"not"
operator) can no longer resolve totrue
unless there is an unrelated branch in the condition tree that itself resolves totrue
.
- Audience conditions (except for the new
SetForcedVariation
now treats an empty variation key as invalid and does not reset the variation. (#113)- All methods now treat an empty user ID as valid.
HttpClientEventDispatcher45
now logs full exception (#112)- You can now specify
0
or1
as therevenue
orvalue
for a conversion event when using theTrack
method. Previously,0
and1
were withheld, would not appear in your data export, and in the case of1
would not contribute to the user's total revenue or value.
January 31, 2019
- fix(eventtagsutils) : fixes bug where values of 0 and 1 are excluded from the event value in the conversion event payload. (#132)
November 5, 2018
- Fix package signing for installation via Nuget.
October 26, 2018
- refactor(interface): Adds IOptimizely interface (#93)
- feat(api): Accepting all types for attributes values (#102)
- fix(whitelisting): Removed logic from bucketing since it is checked in Decision Service. (#98)
- fix(track): Send decisions for all experiments using an event when using track. (#100)
- fix(datafile-parsing): Prevent newer versions datafile (#101)
- fix(api): Only track attributes with valid attribute types. (#103)
June 28, 2018
- Introduces support for bot filtering. (#79)
June 20, 2018
- Fix events are not sent from the SDK for a variation in a feature test if the feature is disabled.
April 16, 2018
This major release of the Optimizely SDK introduces APIs for Feature Management.
- Introduces the
IsFeatureEnabled
API to determine whether to show a feature to a user or not.
var enabled = OptimizelyClient.IsFeatureEnabled("my_feature_key", "user_1", userAttributes);
- You can also get all the enabled features for the user by calling the following method which returns a list of strings representing the feature keys:
var enabledFeatures = OptimizelyClient.GetEnabledFeatures("user_1", userAttributes);
- Introduces Feature Variables to configure or parameterize your feature. There are four variable types:
Integer
,String
,Double
,Boolean
.
var stringVariable = OptimizelyClient.GetFeatureVariableString("my_feature_key", "string_variable_key", "user_1", userAttributes);
var integerVariable = OptimizelyClient.GetFeatureVariableInteger("my_feature_key", "integer_variable_key", "user_1", userAttributes);
var doubleVariable = OptimizelyClient.GetFeatureVariableDouble("my_feature_key", "double_variable_key", "user_1", userAttributes);
var booleanVariable = OptimizelyClient.GetFeatureVariableBoolean("my_feature_key", "boolean_variable_key", "user_1", userAttributes);
February 14, 2018
- Change 'murmurhash' to 'murmurhash-signed' in OptimizelySDK.nuspec fixing:
System.IO.FileLoadException 'Could not load file or assembly 'MurmurHash, ... PublicKeyToken ...'
January 5, 2018
- Feature Notification Center
- Third party component DLL's dependencies unbundled to NUGET.ORG .
- DemoApp README.md
- Httpclient issues - object initializing multiple times and default timeout.
November 6, 2017
- Package DLL's including third party component DLL's are strongnamed and digitally signed by Optimizely.
- DecisionService GetVariationForFeatureRollout added.
- Feature Flag and Rollout models added.
- Implemented Bucketing ID feature.
October 4, 2017
- Introduce Numeric Metrics - This allows you to include a floating point value that is used to track numeric values in your experiments.
var eventTags = new EventTags()
{
{ "value", 10.00 },
};
OptimizelyClient.Track(eventKey, userId, attributes, eventTags);
- Introduce Forced Variation - This allows you to force users into variations programmatically in real time for QA purposes without requiring datafile downloads from the network.
var result = OptimizelyClient.SetForcedVariation(experimentKey, userId, forcedVariationKey);
- Upgrade to use new event API.
- Add .Net 4.0 build in nuget package.
- Introduce the user profile service.
- General release of Optimizely X Full Stack C# SDK. No breaking changes from previous version.
- Beta release of the Optimizely X Full Stack C# SDK.