public OfPayService(FunHaiNanContext context, IMapper mapper, IOptions <OfPaySetting> ofpay, ISystems sys) { _context = context; _mapper = mapper; _ofpay = ofpay.Value; _sys = sys; }
internal World(Contexts contexts, MessageBus messageBus, bool fastMessageCleanup, ISystems systems) { Instance = this; Contexts = contexts; MessageBus = messageBus; _fastMessageCleanup = fastMessageCleanup; _systems = systems; }
public BizService(ISystems sys, IOptions <ZhangYuSetting> options, IMapper mapper, FunHaiNanContext context) { _sys = sys; _options = options; _mapper = mapper; _context = context; _log = _log = LogManager.GetLogger("NETCoreRepository", typeof(BizService)); }
/// <summary> /// 注入 /// </summary> /// <param name="user"></param> /// <param name="sys"></param> /// <param name="recharge"></param> /// <param name="biz"></param> /// <param name="token"></param> public AliPayController(IUser user, ISystems sys, IRecharge recharge, IBiz biz, IToken token) { _biz = biz; _recharge = recharge; _sys = sys; _user = user; _token = token; }
/// <summary> /// 构造函数注入 /// </summary> /// <param name="routine"></param> /// <param name="sys"></param> /// <param name="token"></param> /// <param name="user"></param> /// <param name="biz"></param> /// <param name="gameKey"></param> public RoutineController(IRoutine routine, ISystems sys, IToken token, IUser user, IBiz biz, IOptions <GameKeySetting> gameKey) { _routine = routine; _sys = sys; _token = token; _user = user; _biz = biz; _gameKey = gameKey.Value; _log = _log = LogManager.GetLogger(Startup.repository.Name, typeof(RoutineController)); }
protected readonly ISystems _sys; /**/ public ExternalResponesViewModel(SysCode sysCode, ISystems sys, T data) { _sys = sys; Code = (int)sysCode; Message = EnumExtention.GetDescription(sysCode); if (data != null) { this.Data = _sys.Base64Encode(Encoding.UTF8, JsonHelper.SerializeObject(data)); } }
public AccoutService(IOptions <PHPRequestSetting> options, ISystems sys, IMapper mapper, FunHaiNanContext context, IOptions <HaiXiaSetting> haixiaoptions, IOptions <HaiXiaPhpSetting> phpoptions) { _options = options; _sys = sys; _mapper = mapper; _context = context; _log = _log = LogManager.GetLogger("NETCoreRepository", typeof(AccoutService)); _haixiaoptions = haixiaoptions; _phpoptions = phpoptions; }
protected readonly ISystems _sys; /**/ public UnknownViewModel(SysCode sysCode, ISystems sys, T data) { _sys = sys; Code = (int)sysCode; Message = EnumExtention.GetDescription(sysCode); if (data != null) { this.Data = data; } }
/// <summary> /// 构造函数注入 /// </summary> /// <param name="mag"></param> /// <param name="sys"></param> /// <param name="user"></param> /// <param name="token"></param> /// <param name="biz"></param> /// <param name="accout"></param> public UserController(IPhoneMessage mag, ISystems sys, IUser user, IToken token, IRoutine routine, IBiz biz, IAccout accout) { _mag = mag; _sys = sys; _user = user; _token = token; _biz = biz; _accout = accout; _log = LogManager.GetLogger(Startup.repository.Name, typeof(UserController)); _routine = routine; }
public RechargeService(IMapper mapper, FunHaiNanContext context, IOptions <StraitAliPaySetting> straitAliPay, IOptions <AliPaySetting> options, ISystems sys, IOptions <ApplepaySetting> optionsApple, IAlipayService alipayService) { _context = context; _mapper = mapper; //_options = options; _appSettings = options.Value; _sys = sys; _applepay = optionsApple.Value; _alipayService = alipayService; _straitAliPay = straitAliPay.Value; }
/// <summary> /// 构造函数注入 /// </summary> /// <param name="user"></param> /// <param name="token"></param> /// <param name="sys"></param> /// <param name="recharge"></param> /// <param name="routine"></param> /// <param name="biz"></param> public RechargeController(IUser user, IToken token, IOptions <WeChatPaySetting> weChatPay, IOptions <LqhnWeChatPaySetting> lqhnweChatPay, ISystems sys, IRecharge recharge, IRoutine routine, IBiz biz, IAccout accout) { _sys = sys; _user = user; _token = token; _recharge = recharge; _routine = routine; _biz = biz; _accout = accout; _weChatPay = weChatPay.Value; _lqhnweChatPay = lqhnweChatPay.Value; }
/// <summary> /// 注入 /// </summary> /// <param name="token"></param> /// <param name="userTask"></param> /// <param name="biz"></param> /// <param name="user"></param> /// <param name="sys"></param> /// <param name="msg"></param> /// <param name="currencyKey"></param> /// <param name="accout"></param> public UserTaskController(IToken token, IUserTask userTask, IBiz biz, IUser user, ISystems sys, IPhoneMessage msg, IOptions <CurrencyKeySetting> currencyKey, IAccout accout) { _token = token; _userTask = userTask; _log = _log = LogManager.GetLogger(Startup.repository.Name, typeof(OfpayController)); _biz = biz; _user = user; _sys = sys; _msg = msg; _currencyKey = currencyKey.Value; _accout = accout; }
/// <summary> /// Initializes a new instance of the <see cref="T:ZsqApp.Core.WebApi.Controllers.H5Controllres.WebBetsController"/> class. /// </summary> /// <param name="token"></param> /// <param name="biz"></param> /// <param name="gameKey"></param> /// <param name="user"></param> /// <param name="systems"></param> /// <param name="userTask"></param> /// <param name="currencyKey"></param> /// <param name="accout"></param> public WebBetsController(IToken token, IBiz biz, IOptions <GameKeySetting> gameKey, IUser user, ISystems systems, IUserTask userTask, IRoutine routine, IOptions <CurrencyKeySetting> currencyKey, IAccout accout) { _token = token; _biz = biz; _gameKey = gameKey.Value; _user = user; _sys = systems; _userTask = userTask; _currencyKey = currencyKey.Value; _log = _log = LogManager.GetLogger(Startup.repository.Name, typeof(WebBetsController)); _accout = accout; _routine = routine; }
//---------------------------------------------------------------------------------- /// <summary> /// allows for registering a new system. /// </summary> /// <typeparam name="TISystemsType">the type of the service to be registered.</typeparam> /// <param name="provider">the service provider.</param> //---------------------------------------------------------------------------------- public static void RegisterSystems <TISystemsType>(ISystems provider) where TISystemsType : ISystems { Type type = provider.GetType(); LazyInit(); if (!m_services.ContainsKey(type)) { m_services.Add(typeof(TISystemsType), provider); } else { Debug.Fail("This service already exists!"); } }
public GameResponesViewModel(SysCode sysCode, T data, ISystems sys, string appkey, string requestId, string nonce) { _sys = sys; string appSecret = _sys.GetAppConfig(appkey).Secret; code = (int)sysCode; message = EnumExtention.GetDescription(sysCode); timestamp = TimeHelper.ConvertDateTimeToInt(DateTime.Now.ToLocalTime()).ToString(); if (data != null) { this.data = _sys.Base64Encode(Encoding.UTF8, JsonHelper.SerializeObject(data)); sign = _sys.Sha512Encode($"{appkey}{appSecret}{this.data}{nonce}{timestamp}"); } else { sign = _sys.Sha512Encode($"{appkey}{appSecret}{nonce}{timestamp}"); } this.requestId = requestId; this.appKey = appkey; this.nonce = nonce; page = null; //用不上 signType = "sha_512"; }
protected readonly ISystems _sys; /**/ /// <summary> /// 返回值构造函数 /// author:陶林辉 /// </summary> /// <param name="sysCode">错误枚举</param> /// <param name="data">返回业务参数</param> /// <param name="encrypt">加密方式</param> public ResponseViewModel(SysCode sysCode, T data, string encrypt, ISystems sys, string secret) { _sys = sys; Code = (int)sysCode; Message = EnumExtention.GetDescription(sysCode); Datetime = DateTime.Now.ToLocalTime().ToString(); Timestamp = TimeHelper.ConvertDateTimeToInt(DateTime.Now.ToLocalTime()); if (encrypt == "0") { if (data != null) { this.Data = _sys.Base64Encode(Encoding.UTF8, JsonHelper.SerializeObject(data)); } } else if (encrypt == "1") { if (data != null) { this.Data = _sys.AesEncrypt(secret, JsonHelper.SerializeObject(data)); } } this.Encrypt = encrypt; }
/// <summary> /// Initializes a new instance of the /// <see cref="T:ZsqApp.Core.WebApi.Controllers.H5Controllres.ActivityController"/> class. /// </summary> /// <param name="systems">Systems.</param> /// <param name="token">Systems.</param> /// <param name="activity">Systems.</param> public ActivityController(ISystems systems, IToken token, IActivity activity) { _sys = systems; _token = token; _activity = activity ?? throw new ArgumentNullException(nameof(activity)); }
/// <summary> /// 构造函数注入 /// </summary> /// <param name="sys"></param> /// <param name="validate"></param> public ValidateController(ISystems sys, IOptions <ValidateSetting> validate) { _sys = sys; _validate = validate.Value; }
public TokenService(FunHaiNanContext context, IMapper mapper, ISystems sys) { _context = context; _mapper = mapper; _sys = sys; }
/// <summary> /// 构造函数注入 /// </summary> /// <param name="systems"></param> /// <param name="homeservice"></param> public HomePageController(ISystems systems, IHomeService homeservice) { _sys = systems; _homeservice = homeservice; }
/// <summary> /// 构造函数注入 /// </summary> /// <param name="game"></param> /// <param name="sys"></param> public GameController(IGame game, ISystems sys) { _game = game; _sys = sys; }