-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVsLibraryConfiguration.cs
More file actions
88 lines (78 loc) · 2.86 KB
/
VsLibraryConfiguration.cs
File metadata and controls
88 lines (78 loc) · 2.86 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//*****************************************************************************
//* Code Factory SDK
//* Copyright (c) 2021 CodeFactory, LLC
//*****************************************************************************
namespace CodeFactory.VisualStudio.Loader
{
/// <summary>
/// Immutable data model that implements the interface <see cref="IVsLibraryConfiguration"/>
/// </summary>
public class VsLibraryConfiguration:IVsLibraryConfiguration
{
private bool _isStoredInGac;
private bool _hasErrors;
private LibraryErrorType _errorType;
private string _errorDetails;
private string _assemblyFilePath;
private string _assemblyStrongName;
private bool _hasDebugInformation;
#region Implementation of IVsLibraryConfiguration
/// <summary>
/// Flag that determines if the assembly is stored in the Global Assembly Cache on the computer.
/// </summary>
public bool IsStoredInGac
{
get { return _isStoredInGac; }
set { _isStoredInGac = value; }
}
/// <summary>
/// Flag that determines if their were errors loading the library configuration.
/// </summary>
public bool HasErrors
{
get { return _hasErrors; }
set { _hasErrors = value; }
}
/// <summary>
/// Enumeration that stores the type of error that has occurred while loading the library configuration.
/// </summary>
public LibraryErrorType ErrorType
{
get { return _errorType; }
set { _errorType = value; }
}
/// <summary>
/// Stores the exception message for the error.
/// </summary>
public string ErrorDetails
{
get { return _errorDetails; }
set { _errorDetails = value; }
}
/// <summary>
/// File path to where the assembly is found. This will be null if the assembly is stored in the GAC.
/// </summary>
public string AssemblyFilePath
{
get { return _assemblyFilePath; }
set { _assemblyFilePath = value; }
}
/// <summary>
/// The fully qualified name of the assembly to be loaded. This will be null if not stored in the GAC.
/// </summary>
public string AssemblyStrongName
{
get { return _assemblyStrongName; }
set { _assemblyStrongName = value; }
}
/// <summary>
/// Flag that determines if the PDB file is found wit the assembly in the file path. This will be false if it is stored in the GAC.
/// </summary>
public bool HasDebugInformation
{
get { return _hasDebugInformation; }
set { _hasDebugInformation = value; }
}
#endregion
}
}