예제 #1
0
 static HomeController()
 {
     VWO.Configure(LogLevel.DEBUG);
     VWO.Configure(new CustomLogger());
     SettingsFile = SettingsProvider.GetSettingsFile(VWOConfig.SDK.AccountId, VWOConfig.SDK.SdkKey);
     VWOClient    = VWO.Launch(SettingsFile, isDevelopmentMode: false, userStorageService: new UserStorageService());
 }
        static HomeController()
        {
            VWO.Configure(LogLevel.DEBUG);
            VWO.Configure(new CustomLogger());
            CustomLogger logger = new CustomLogger();

            SettingsFile = SettingsProvider.GetSettingsFile(VWOConfig.SDK.AccountId, VWOConfig.SDK.SdkKey);
            BatchEventData _batchData = new BatchEventData();

            _batchData.EventsPerRequest    = Defaults.EventsPerRequest;
            _batchData.RequestTimeInterval = Defaults.RequestTimeInterval;
            _batchData.FlushCallback       = new FlushCallback();
            //logger.WriteLog(LogLevel.DEBUG, "BatchEventData : EventsPerRequest-" + Defaults.EventsPerRequest.ToString() +", RequestTimeInterval:" + Defaults.RequestTimeInterval);
            //VWOClient = VWO.Launch(SettingsFile, batchData: _batchData);

            //logger.WriteLog(LogLevel.DEBUG, "HookManager : IntegrationEventListener onEvent requested ");
            //VWOClient = VWO.Launch(SettingsFile, batchData: _batchData, integrations: new HookManager(){HookCallback = new HookCallback()});

            logger.WriteLog(LogLevel.DEBUG, "BatchEventData,userStorageService,isDevelopmentMode,integrations,shouldTrackReturningUser passed in SDK");
            VWOClient = VWO.Launch(SettingsFile, batchData: _batchData, userStorageService: new UserStorageService(),
                                   isDevelopmentMode: false, integrations: new HookManager()
            {
                HookCallback = new HookCallback()
            }, shouldTrackReturningUser: false);
        }