-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathProviderStateChangedEventArgs.cs
More file actions
35 lines (31 loc) · 1.23 KB
/
ProviderStateChangedEventArgs.cs
File metadata and controls
35 lines (31 loc) · 1.23 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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace CommunityToolkit.Authentication
{
/// <summary>
/// <see cref="IProvider.StateChanged"/> event arguments.
/// </summary>
public class ProviderStateChangedEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="ProviderStateChangedEventArgs"/> class.
/// </summary>
/// <param name="oldState">Previous <see cref="ProviderState"/>.</param>
/// <param name="newState">Current <see cref="ProviderState"/>.</param>
public ProviderStateChangedEventArgs(ProviderState? oldState, ProviderState? newState)
{
OldState = oldState;
NewState = newState;
}
/// <summary>
/// Gets the previous state of the <see cref="IProvider"/>.
/// </summary>
public ProviderState? OldState { get; private set; }
/// <summary>
/// Gets the new state of the <see cref="IProvider"/>.
/// </summary>
public ProviderState? NewState { get; private set; }
}
}