-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVsCodeFactoryLoadStatus.cs
More file actions
60 lines (52 loc) · 2.06 KB
/
VsCodeFactoryLoadStatus.cs
File metadata and controls
60 lines (52 loc) · 2.06 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//*****************************************************************************
//* Code Factory SDK
//* Copyright (c) 2021 CodeFactory, LLC
//*****************************************************************************
using System.Collections.Generic;
namespace CodeFactory.VisualStudio.Loader
{
/// <summary>
/// Data model that implements the interface <see cref="IVsCodeFactoryLoadStatus"/>
/// </summary>
public class VsCodeFactoryLoadStatus:IVsCodeFactoryLoadStatus
{
private bool _isLoaded;
private bool _hasError;
private List<string> _errorMessages;
IEnumerable <IVsCommandInformation> _visualStudioFactoryActions;
#region Implementation of IVsCodeFactoryLoadStatus
/// <summary>
/// Flag that determines if visual studio commands were able to be loaded for the code factory package.
/// </summary>
public bool IsLoaded
{
get { return _isLoaded; }
set { _isLoaded = value; }
}
/// <summary>
/// Flag that determines if errors occurred while loading the code factory commands.
/// </summary>
public bool HasErrors
{
get { return _hasError; }
set { _hasError = value; }
}
/// <summary>
/// The error messages that was captured while trying to load the code factory commands. This will be null if <see cref="IVsCodeFactoryLoadStatus.HasError"/> is false.
/// </summary>
public List<string> ErrorMessages
{
get { return _errorMessages; }
set { _errorMessages = value; }
}
/// <summary>
/// Enumeration of the factory commands that were loaded. This will be an empty enumeration if <see cref="IVsCodeFactoryLoadStatus.IsLoaded"/> is false.
/// </summary>
public IEnumerable<IVsCommandInformation> VisualStudioFactoryActions
{
get { return _visualStudioFactoryActions; }
set { _visualStudioFactoryActions = value; }
}
#endregion
}
}