Diff of /Interfaces/+APUnitTestFramework/DependencyErrorEventArgs.cs [000000] .. [5a4bff]  Maximize  Restore

Switch to unified view

a b/Interfaces/+APUnitTestFramework/DependencyErrorEventArgs.cs
1
using _3S.CoDeSys.Core.ComponentModel;
2
using System;
3
4
namespace _3S.APUnitTestFramework
5
{
6
    /// <summary>
7
    /// Event arguments for the <see cref="Testbed.DependencyError"/> event.
8
    /// </summary>
9
    public class DependencyErrorEventArgs : EventArgs
10
    {
11
        /// <summary>
12
        /// For internal use only.
13
        /// </summary>
14
        /// <param name="exception"></param>
15
        /// <param name="requiredInterfaceType"></param>
16
        /// <param name="specificTypeGuid"></param>
17
        public DependencyErrorEventArgs(ComponentModelException exception, Type requiredInterfaceType, Guid? specificTypeGuid)
18
        {
19
            Exception = exception;
20
            RequiredInterfaceType = requiredInterfaceType;
21
            SpecificTypeGuid = specificTypeGuid;
22
        }
23
24
        /// <summary>
25
        /// Gets the exception that has been thrown by the Component Model implementation while
26
        /// attempting to resolve the dependency (most likely a <see cref=
27
        /// "NoInstanceForInjectionException"/>).
28
        /// </summary>
29
        public ComponentModelException Exception { get; private set; }
30
31
        /// <summary>
32
        /// Gets the required interface type of the dependency that could not be resolved.
33
        /// </summary>
34
        public Type RequiredInterfaceType { get; private set; }
35
36
        /// <summary>
37
        /// Gets the specific required type GUID of the dependency that could not be resolved (in
38
        /// the case that the dependency has been marked with the <see cref=
39
        /// "InjectSpecificInstanceAttribute"/> or the <see cref=
40
        /// "InjectSpecificTypeInformationAttribute"/>). This property value is <c>null</c> if
41
        /// the dependency is not bound to a specific type GUID.
42
        /// </summary>
43
        public Guid? SpecificTypeGuid { get; private set; }
44
    }
45
}