Skip to content

Commit

Permalink
deprecate TrackingMangerConfig property
Browse files Browse the repository at this point in the history
  • Loading branch information
Heihokon committed Aug 25, 2023
1 parent ea8abc4 commit 963f35f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Flagship/Config/FlagshipConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@

namespace Flagship.Config
{
public abstract class FlagshipConfig
public abstract class FlagshipConfig
{
private ITrackingManagerConfig trackingManagerConfig;

public string EnvId { get; internal set; }
public string ApiKey { get; internal set; }

public DecisionMode DecisionMode { get; protected set; }
public DecisionMode DecisionMode { get; protected set; }

/// <summary>
/// Specify timeout for api request.
Expand Down Expand Up @@ -76,7 +78,14 @@ virtual internal void InvokeOnVisitorExposed(IExposedVisitor exposedVisitor, IEx
/// <summary>
/// Define options to configure hit batching
/// </summary>
public ITrackingManagerConfig TrackingManagerConfig { get; set; }
///
[Obsolete("Please use TrackingManagerConfig instead ")]
public ITrackingManagerConfig TrackingMangerConfig { get => trackingManagerConfig; set => trackingManagerConfig = value; }

/// <summary>
/// Define options to configure hit batching
/// </summary>
public ITrackingManagerConfig TrackingManagerConfig { get => trackingManagerConfig; set => trackingManagerConfig = value; }

public FlagshipConfig(DecisionMode decisionMode = DecisionMode.DECISION_API)
{
Expand Down

0 comments on commit 963f35f

Please sign in to comment.