/// <summary> /// Initializes the singleton instance of the TealiumTagger with the specified settings. /// Assumes that the root visual of the application is an instance of Frame. /// </summary> /// <param name="settings"></param> public static void Initialize(TealiumSettings settings) { instance = new TealiumTagger(settings); }
private TealiumTagger(TealiumSettings settings) { this.settings = settings; RegisterWithRootFrame(); }
private TealiumTagger(Frame rootFrame, TealiumSettings settings) { this.settings = settings; this.rootFrame = rootFrame; RegisterWithRootFrame(); }
/// <summary> /// Initializes the singleton instance of the TealiumTagger with the specified settings and specified Frame instance. /// This version is useful when the root visual of the application is not a Frame. /// </summary> /// <param name="rootFrame"></param> /// <param name="settings"></param> public static void Initialize(Frame rootFrame, TealiumSettings settings) { instance = new TealiumTagger(rootFrame, settings); }