8000 feat: Added ODPManager implementation by mikechu-optimizely · Pull Request #322 · optimizely/csharp-sdk · GitHub
[go: up one dir, main page]

Skip to content

feat: Added ODPManager implementation #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark _odpConfig as volatile
  • Loading branch information
mikechu-optimizely committed Dec 6, 2022
commit c528dce762c757ba6ef37249fe81c14ca26e6232
2 changes: 1 addition & 1 deletion OptimizelySDK/Odp/OdpEventManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace OptimizelySDK.Odp
/// </summary>
public class OdpEventManager : IOdpEventManager, IDisposable
{
private OdpConfig _odpConfig;
private volatile OdpConfig _odpConfig;
private IOdpEventApiManager _odpEventApiManager;
private int _batchSize;
private TimeSpan _flushInterval;
Expand Down
2 changes: 1 addition & 1 deletion OptimizelySDK/Odp/OdpSegmentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class OdpSegmentManager : IOdpSegmentManager
/// <summary>
/// ODP configuration containing the connection parameters
/// </summary>
private OdpConfig _odpConfig;
private volatile OdpConfig _odpConfig;

/// <summary>
/// Cached segments
Expand Down
0