You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance the base to provide a useful default behavior (accessing VBComponent.Properties)
Require VBE for ctor for all hosts (necessary for useful default behavior)
Update all host implementation to pass in VBE in the ctor, preserving the original preferences of loading via reflection or via VBE
_logger.Error(exception,$"Unexpected COM exception while acquiring the host application object for application {applicationName} via COM reflection.");
33
-
application=null;// We currently really only use the name anyway.
32
+
application=null;
34
33
}
35
34
catch(InvalidCastExceptionexception)
36
35
{
37
36
//TODO: Find out why this ever happens.
38
37
_logger.Error(exception,$"Unable to cast the host application object for application {applicationName} acquired via COM reflection to its PIA type.");
39
-
application=null;//We currently really only use the name anyway.
38
+
application=null;
40
39
}
41
40
catch(Exceptionexception)
42
41
{
43
42
//note: We catch all exceptions because we currently really do not need application object and there can be exceptions for unexpected system setups.
44
43
_logger.Error(exception,$"Unexpected exception while acquiring the host application object for application {applicationName} from a document module.");
45
-
application=null;//We currently really only use the name anyway.
_logger.Error(exception,$"Unexpected COM exception while acquiring the host application object for application {applicationName} from a document module.");
71
-
application=null;// We currently really only use the name anyway.
71
+
application=null;
72
72
}
73
73
catch(InvalidCastExceptionexception)
74
74
{
75
75
_logger.Error(exception,$"Unable to cast the host application object for application {applicationName} acquiered from a document module to its PIA type.");
76
-
application=null;//We currently really only use the name anyway.
76
+
application=null;
77
77
}
78
78
catch(Exceptionexception)
79
79
{
80
80
//note: We catch all exceptions because we currently really do not need application object and there can be exceptions for unexpected system setups.
81
81
_logger.Error(exception,$"Unexpected exception while acquiring the host application object for application {applicationName} from a document module.");
82
-
application=null;//We currently really only use the name anyway.
0 commit comments