コード例 #1
0
 public ConsentController(IAgreementConsentService consentService)
 {
     _consentService = consentService ?? throw new ArgumentNullException(nameof(consentService));
 }
 public ConsentController(IAgreementConsentService consentService, CookieExpirationSettings cookieExpiration)
 {
     this.consentService   = consentService ?? throw new ArgumentNullException(nameof(consentService));
     this.cookieExpiration = cookieExpiration ?? throw new ArgumentNullException(nameof(cookieExpiration));
 }