public static void Reset() { _configuration = null; _mapper = null; isMobile = null; isNative = null; }
public static void Configure(SmartResultConfiguration configuration) { mapperConfiguration = new MapperConfiguration(cfg => { configuration.Profiles.ForEach(p => { cfg.AddProfile(p); }); }); mapper = mapperConfiguration.CreateMapper(); isMobile = configuration.IsMobileBrowser(); isNative = configuration.IsNativeDevice(); }