コード例 #1
0
        public async Task AddNotificationAsync(Guid buildId, string channelId, WatchLevel watchLevel)
        {
            var notification = new NotificationDetails(buildId, channelId, watchLevel);

            logger.LogInformation($"Adding notification: '{notification}'");

            notificationDb.Add(notification);
            await notificationDb.SaveChangesAsync();
        }
コード例 #2
0
 public NotificationDetails(Guid buildId, string channelId, WatchLevel watchLevel)
 {
     BuildId    = buildId;
     ChannelId  = channelId;
     WatchLevel = watchLevel;
 }