Пример #1
0
 /// <summary>
 /// Trigegr coding skill events
 /// </summary>
 private async Task TriggerCodingSkillEvents(IResolverContext ctx, CodingSkillEntity skill)
 {
     await Task.WhenAll(new [] {
         ctx.TriggerEvent(new CodingSkillEvent(Events.ON_SKILL_BY_LEVEL, skill.Level, skill)),
         ctx.TriggerEvent(new CodingSkillEvent(Events.ON_SKILL_BY_NAME, skill.Name, skill)),
         ctx.TriggerEvent(new CodingSkillEvent(Events.ON_SKILL_BY_USER, skill.UserId, skill))
     });
 }