From 963f35fcfa6edf0168ffdedd957286e0bd5427bf Mon Sep 17 00:00:00 2001 From: Heihokon Date: Fri, 25 Aug 2023 09:54:24 -0500 Subject: [PATCH] deprecate TrackingMangerConfig property --- Flagship/Config/FlagshipConfig.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Flagship/Config/FlagshipConfig.cs b/Flagship/Config/FlagshipConfig.cs index d221996..8e2cf7c 100644 --- a/Flagship/Config/FlagshipConfig.cs +++ b/Flagship/Config/FlagshipConfig.cs @@ -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; } /// /// Specify timeout for api request. @@ -76,7 +78,14 @@ virtual internal void InvokeOnVisitorExposed(IExposedVisitor exposedVisitor, IEx /// /// Define options to configure hit batching /// - public ITrackingManagerConfig TrackingManagerConfig { get; set; } + /// + [Obsolete("Please use TrackingManagerConfig instead ")] + public ITrackingManagerConfig TrackingMangerConfig { get => trackingManagerConfig; set => trackingManagerConfig = value; } + + /// + /// Define options to configure hit batching + /// + public ITrackingManagerConfig TrackingManagerConfig { get => trackingManagerConfig; set => trackingManagerConfig = value; } public FlagshipConfig(DecisionMode decisionMode = DecisionMode.DECISION_API) {