public RewardMoneyGrantService(RewardMoneyGrantSetting settings) { this.Settings = settings; this.api = AppHost.Host.Services.GetService(typeof(IWeChatApi)) as IWeChatApi; this.generator = AppHost.Host.Services.GetService(typeof(IRandomGenerator)) as IRandomGenerator; }
public RewardMoneyGrantResultService(RewardMoneyGrantSetting settings) { this.Settings = settings; this.databaseFactory = AppHost.Host.Services.GetService(typeof(IDatabaseFactory)) as IDatabaseFactory; }