コード例 #1
0
 public static void Reset()
 {
     _configuration = null;
     _mapper        = null;
     isMobile       = null;
     isNative       = null;
 }
コード例 #2
0
        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();
        }