public JssdkController( IWeixinAccessToken weixinAccessToken, IOptions <WeixinAccessTokenOptions> optionsAccessor) { _weixinAccessToken = weixinAccessToken ?? throw new ArgumentNullException(nameof(weixinAccessToken)); _options = optionsAccessor?.Value ?? throw new ArgumentNullException(nameof(optionsAccessor)); }
public HomeController( ILoggerFactory loggerFactory, IWeixinAccessToken smsSender) { _logger = loggerFactory?.CreateLogger <HomeController>() ?? throw new ArgumentNullException(nameof(loggerFactory)); _weixinAccessToken = smsSender ?? throw new ArgumentNullException(nameof(smsSender)); }
public WeixinMenuController(AppDbContext context, IWeixinAccessToken weixinAccessToken, ILogger <WeixinMenuController> logger) { _context = context; _weixinAccessToken = weixinAccessToken; _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public WeixinController( AppDbContext db, ILoggerFactory loggerFactory, IWeixinAccessToken smsSender) { _db = db ?? throw new ArgumentNullException(nameof(db)); _logger = loggerFactory?.CreateLogger <HomeController>() ?? throw new ArgumentNullException(nameof(loggerFactory)); _weixinAccessToken = smsSender ?? throw new ArgumentNullException(nameof(smsSender)); }
public QrcodeController(ILoggerFactory loggerFactory, IWeixinAccessToken weixinAccessToken) { _logger = loggerFactory?.CreateLogger <QrcodeController>() ?? throw new ArgumentNullException(nameof(loggerFactory)); _weixinAccessToken = weixinAccessToken ?? throw new ArgumentNullException(nameof(weixinAccessToken)); }
public MemoryCachedWeixinJsapiTicket(IMemoryCache cache, WeixinJssdkOptions options, IWeixinAccessToken AccessToken) { _cache = cache; _options = options; _AccessToken = AccessToken; }
public WeixinAccessTokenController(IWeixinAccessToken weixinAccessToken) { _weixinAccessToken = weixinAccessToken; }