Add comment about not using an exception filter
\n\nCommit migrated from b6abd65ea2
This commit is contained in:
parent
10e316f541
commit
2706bc5610
|
|
@ -171,7 +171,7 @@ namespace Microsoft.JSInterop
|
|||
{
|
||||
return methodInfo.Invoke(targetInstance, suppliedArgs);
|
||||
}
|
||||
catch (TargetInvocationException tie)
|
||||
catch (TargetInvocationException tie) // Avoid using exception filters for AOT runtime support
|
||||
{
|
||||
if (tie.InnerException != null)
|
||||
{
|
||||
|
|
@ -243,8 +243,8 @@ namespace Microsoft.JSInterop
|
|||
var invokableMethods = GetRequiredLoadedAssembly(assemblyName)
|
||||
.GetExportedTypes()
|
||||
.SelectMany(type => type.GetMethods(
|
||||
BindingFlags.Public |
|
||||
BindingFlags.DeclaredOnly |
|
||||
BindingFlags.Public |
|
||||
BindingFlags.DeclaredOnly |
|
||||
BindingFlags.Instance |
|
||||
BindingFlags.Static))
|
||||
.Where(method => method.IsDefined(typeof(JSInvokableAttribute), inherit: false));
|
||||
|
|
|
|||
Loading…
Reference in New Issue