aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/MachineStudio.Dispensers/ViewModelLocator.cs
blob: 038a052b3c67a019b4dc6edc112763598f19f9ca (plain)
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.PPC.UI.Notifications
{
    /// <summary>
    /// Represents a pending notification item.
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <typeparam name="TResult">The type of the result.</typeparam>
    public class PendingNotification<T, TResult>
    {
        /// <summary>
        /// Gets or sets the item.
        /// </summary>
        public T Item { get; set; }

        /// <summary>
        /// Gets or sets the completion source.
        /// </summary>
      
pan class="p">{ get; set; } /// <summary> /// Initializes a new instance of the <see cref="PendingNotification{T, TResult}"/> class. /// </summary> public PendingNotification() { } /// <summary> /// Initializes a new instance of the <see cref="PendingNotification{T, TResult}"/> class. /// </summary> /// <param name="item">The item.</param> /// <param name="completionSource">The completion source.</param> public PendingNotification(T item, TaskCompletionSource<TResult> completionSource) : this() { Item = item; CompletionSource = completionSource; } } }