-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathTrackingCompletedEventArgs.cs
More file actions
37 lines (33 loc) · 1.19 KB
/
TrackingCompletedEventArgs.cs
File metadata and controls
37 lines (33 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (C) 2012-2022 Xtensive LLC.
// This code is distributed under MIT license terms.
// See the License.txt file in the project root for more information.
using System;
using System.Collections.Generic;
namespace Xtensive.Orm.Tracking
{
/// <summary>
/// Event arguments for <see cref="ITrackingMonitor.TrackingCompleted"/> event.
/// </summary>
public readonly struct TrackingCompletedEventArgs
{
/// <summary>
/// Gets session this changes occurred in.
/// </summary>
public Session Session { get; }
/// <summary>
/// Gets the changes.
/// </summary>
public IEnumerable<ITrackingItem> Changes { get; }
/// <summary>
/// Initializes a new instance of the <see cref="TrackingCompletedEventArgs"/> class.
/// </summary>
/// <param name="session"><see cref="T:Session"/> instance where the <see cref="Changes"/>
/// where collected.</param>
/// <param name="changes">The changes.</param>
public TrackingCompletedEventArgs(Session session, IEnumerable<ITrackingItem> changes)
{
Session = session ?? throw new ArgumentNullException("session");
Changes = changes ?? throw new ArgumentNullException("changes");
}
}
}