Beispiel #1
0
        protected async Task ProcessMatchEvent(Guid matchVKey, Guid teamKey, Guid personKey, PositionType?positionType, MatchEventType matchEventType, short?minute, short?extra)
        {
            var matchEventQuery = await Provider.GetMatchEvents(matchVKey, teamKey, personKey, matchEventType, minute, extra);

            if (matchEventQuery.Any())
            {
                return;
            }

            Provider.Add(new MatchEvent()
            {
                PrimaryKey       = Guid.NewGuid(),
                MatchVPrimaryKey = matchVKey,
                TeamPrimaryKey   = teamKey,
                PersonPrimaryKey = personKey,
                PositionType     = positionType,
                MatchEventType   = matchEventType,
                Minute           = minute,
                Extra            = extra
            });
        }