コード例 #1
0
 public PreferenceSwitcher(IOptions <SwitcherOptions> options, ISitePreferenceStore repository,
                           IDeviceFactory deviceFactory)
 {
     _options       = options;
     _repository    = repository;
     _deviceFactory = deviceFactory;
 }
コード例 #2
0
 public DeviceAccessor(
     ISitePreferenceStore repository,
     IHttpContextAccessor contextAccessor,
     IDeviceResolver deviceResolver)
 {
     _repository      = repository;
     _contextAccessor = contextAccessor;
     _deviceResolver  = deviceResolver;
 }