Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentService"/> class.
 /// </summary>
 /// <param name="strokeContext">The stoke context.</param>
 /// <param name="logger">The logger.</param>
 /// <param name="weChatOptions">The we chat options.</param>
 /// <param name="configOptions"></param>
 /// <param name="httpContextAccessor">The HTTP context accessor.</param>
 public PaymentService(StrokeContext strokeContext, ILogger <PaymentService> logger, IOptions <WeChatOptions> weChatOptions, IOptions <ConfigOptions> configOptions, IHttpContextAccessor httpContextAccessor)
 {
     this.strokeContext       = strokeContext;
     this.Logger              = logger;
     this.weChatOptions       = weChatOptions.Value;
     this.configOptions       = configOptions.Value;
     this.httpContextAccessor = httpContextAccessor;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StrokeService"/> class.
 /// </summary>
 /// <param name="strokeContext">The stroke context.</param>
 /// <param name="weChatOptions">The we chat options.</param>
 /// <param name="logger"></param>
 /// <param name="contextAccessor"></param>
 public StrokeService(StrokeContext strokeContext, IOptions <WeChatOptions> weChatOptions, ILogger <StrokeService> logger, IHttpContextAccessor contextAccessor, IMemoryCache memoryCache)
 {
     this.strokeContext   = strokeContext;
     this.weChatOptions   = weChatOptions.Value;
     this.Logger          = logger;
     this.contextAccessor = contextAccessor;
     this.memoryCache     = memoryCache;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController" /> class.
 /// </summary>
 /// <param name="weChatOptions">The we chat options.</param>
 /// <param name="jwtOptions">The JWT options.</param>
 /// <param name="configOptions"></param>
 /// <param name="logger">The logger.</param>
 /// <param name="strokeContext">The stroke context.</param>
 public HomeController(IOptions <WeChatOptions> weChatOptions, IOptions <JwtOptions> jwtOptions, IOptions <ConfigOptions> configOptions, ILogger <HomeController> logger, StrokeContext strokeContext)
 {
     this.weChatOptions = weChatOptions.Value;
     this.logger        = logger;
     this.strokeContext = strokeContext;
     this.jwtOptions    = jwtOptions.Value;
     this.configOptions = configOptions.Value;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// </summary>
 /// <param name="strokeContext">The stroke context.</param>
 /// <param name="logger"></param>
 /// <param name="options"></param>
 /// <param name="contextAccessor"></param>
 /// <param name="memory"></param>
 public SMSService(StrokeContext strokeContext, ILogger <SMSService> logger,
                   IOptions <SMSOptions> options,
                   IHttpContextAccessor contextAccessor, IMemoryCache memory)
 {
     this.strokeContext   = strokeContext;
     this.Logger          = logger;
     this.contextAccessor = contextAccessor;
     this.memory          = memory;
     this.options         = options.Value;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserService"/> class.
 /// </summary>
 /// <param name="strokeContext">The stroke context.</param>
 /// <param name="weChatOptions">The we chat options.</param>
 /// <param name="logger"></param>
 /// <param name="jwtOptions"></param>
 /// <param name="contextAccessor"></param>
 /// <param name="smsOptions"></param>
 /// <param name="memory"></param>
 /// <param name="hostingEnvironment"></param>
 public UserService(StrokeContext strokeContext, IOptions <WeChatOptions> weChatOptions,
                    ILogger <UserService> logger, IOptions <JwtOptions> jwtOptions, IHttpContextAccessor contextAccessor,
                    IOptions <SMSOptions> smsOptions, IMemoryCache memory, IHostingEnvironment hostingEnvironment
                    )
 {
     this.strokeContext      = strokeContext;
     this.weChatOptions      = weChatOptions.Value;
     this.Logger             = logger;
     this.jwtOptions         = jwtOptions.Value;
     this.contextAccessor    = contextAccessor;
     this.smsOptions         = smsOptions.Value;
     this.memory             = memory;
     this.hostingEnvironment = hostingEnvironment;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShoppingCartService"/> class.
 /// </summary>
 /// <param name="strokeContext"></param>
 /// <param name="logger"></param>
 /// <param name="contextAccessor"></param>
 public ShoppingCartService(StrokeContext strokeContext, ILogger <IShoppingCartService> logger, IHttpContextAccessor contextAccessor)
 {
     this.strokeContext   = strokeContext;
     this.logger          = logger;
     this.contextAccessor = contextAccessor;
 }