wasSharp – Blame information for rev 54

Subversion Repositories:
Rev:
Rev Author Line No. Line
54 office 1 // --------------------------------------------------------------------------------------------------------------------
2 // <copyright file="ObservableConcurrentQueue.cs" company="BledSoft">
3 // This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
4 // To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/.
5 // </copyright>
6 // <Author>
7 // Cheikh Younes
8 // </Author>
9 // --------------------------------------------------------------------------------------------------------------------
10 using System;
11  
12 namespace wasSharp.Collections.Specialized
13 {
14 /// <summary>
15 /// The notify concurrent queue changed event args.
16 /// </summary>
17 /// <typeparam name="T">
18 /// The item type
19 /// </typeparam>
20 public class NotifyConcurrentQueueChangedEventArgs<T> : EventArgs
21 {
22 #region Constructors and Destructors
23  
24 /// <summary>
25 /// Initializes a new instance of the <see cref="NotifyConcurrentQueueChangedEventArgs{T}"/> class.
26 /// </summary>
27 /// <param name="action">
28 /// The action.
29 /// </param>
30 /// <param name="changedItem">
31 /// The changed item.
32 /// </param>
33 public NotifyConcurrentQueueChangedEventArgs(NotifyConcurrentQueueChangedAction action, T changedItem)
34 {
35 this.Action = action;
36 this.ChangedItem = changedItem;
37 }
38  
39 /// <summary>
40 /// Initializes a new instance of the <see cref="NotifyConcurrentQueueChangedEventArgs{T}"/> class.
41 /// </summary>
42 /// <param name="action">
43 /// The action.
44 /// </param>
45 public NotifyConcurrentQueueChangedEventArgs(NotifyConcurrentQueueChangedAction action)
46 {
47 this.Action = action;
48 }
49  
50 #endregion
51  
52 #region Public Properties
53  
54 /// <summary>
55 /// Gets the action.
56 /// </summary>
57 /// <value>
58 /// The action.
59 /// </value>
60 public NotifyConcurrentQueueChangedAction Action { get; private set; }
61  
62 /// <summary>
63 /// Gets the changed item.
64 /// </summary>
65 /// <value>
66 /// The changed item.
67 /// </value>
68 public T ChangedItem { get; private set; }
69  
70 #endregion
71 }
72 }