Beispiel #1
0
 public BrowserRestrictionController(IBrowserRestrictionService browserRestrictionService,
                                     IFeatureService featureService)
 {
     _browserRestrictionService = browserRestrictionService ??
                                  throw new ArgumentNullException(nameof(browserRestrictionService));
     _featureService = featureService ?? throw new ArgumentNullException(nameof(featureService));
 }
Beispiel #2
0
 public FeatureController(IFeatureService featureService, ISupportedBrowserService supportedBrowserService,
                          IBrowserRestrictionService browserRestrictionService)
 {
     _featureService          = featureService ?? throw new ArgumentNullException(nameof(featureService));
     _supportedBrowserService = supportedBrowserService ??
                                throw new ArgumentNullException(nameof(supportedBrowserService));
     _browserRestrictionService = browserRestrictionService ??
                                  throw new ArgumentNullException(nameof(browserRestrictionService));
 }