Skip to content

refactor: fix more AOT warnings #338

refactor: fix more AOT warnings

refactor: fix more AOT warnings #338

Triggered via push November 15, 2023 14:54
Status Success
Total duration 4m 41s
Artifacts

default.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

30 warnings
linux-build: src/WeihanLi.Common/DependencyInjection/ServiceContainer.cs#L285
Member 'WeihanLi.Common.DependencyInjection.ServiceContainer.GetService(Type)' with 'RequiresDynamicCodeAttribute' implements interface member 'System.IServiceProvider.GetService(Type)' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
linux-build: src/WeihanLi.Common/DependencyInjection/ServiceContainer.cs#L285
Member 'WeihanLi.Common.DependencyInjection.ServiceContainer.GetService(Type)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'System.IServiceProvider.GetService(Type)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
linux-build: src/WeihanLi.Common/DependencyResolver.cs#L95
'DynamicallyAccessedMemberTypes' in 'DynamicallyAccessedMembersAttribute' on the parameter 'serviceType' of method 'WeihanLi.Common.DependencyResolver.DefaultDependencyResolver.GetService(Type)' don't match overridden parameter 'serviceType' of method 'System.IServiceProvider.GetService(Type)'. All overridden members must have the same 'DynamicallyAccessedMembersAttribute' usage.
linux-build: src/WeihanLi.Common/Event/EventHandlerFactory.cs#L23
Member 'WeihanLi.Common.Event.DefaultEventHandlerFactory.GetHandlers(Type)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Event.IEventHandlerFactory.GetHandlers(Type)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
linux-build: src/WeihanLi.Common/Event/EventHandlerFactory.cs#L47
Member 'WeihanLi.Common.Event.DependencyInjectionEventHandlerFactory.GetHandlers(Type)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Event.IEventHandlerFactory.GetHandlers(Type)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
linux-build: src/WeihanLi.Common/Aspect/AttributeInterceptorResolver.cs#L19
Member 'WeihanLi.Common.Aspect.AttributeInterceptorResolver.ResolveInterceptors(IInvocation)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IInterceptorResolver.ResolveInterceptors(IInvocation)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
linux-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L21
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
linux-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L35
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Type, params Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Type, params Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
linux-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L61
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
linux-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L21
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Object[])' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Object[])' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
mac-build: src/WeihanLi.Common/DependencyInjection/ServiceContainer.cs#L285
Member 'WeihanLi.Common.DependencyInjection.ServiceContainer.GetService(Type)' with 'RequiresDynamicCodeAttribute' implements interface member 'System.IServiceProvider.GetService(Type)' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
mac-build: src/WeihanLi.Common/DependencyInjection/ServiceContainer.cs#L285
Member 'WeihanLi.Common.DependencyInjection.ServiceContainer.GetService(Type)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'System.IServiceProvider.GetService(Type)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
mac-build: src/WeihanLi.Common/DependencyResolver.cs#L95
'DynamicallyAccessedMemberTypes' in 'DynamicallyAccessedMembersAttribute' on the parameter 'serviceType' of method 'WeihanLi.Common.DependencyResolver.DefaultDependencyResolver.GetService(Type)' don't match overridden parameter 'serviceType' of method 'System.IServiceProvider.GetService(Type)'. All overridden members must have the same 'DynamicallyAccessedMembersAttribute' usage.
mac-build: src/WeihanLi.Common/Event/EventHandlerFactory.cs#L23
Member 'WeihanLi.Common.Event.DefaultEventHandlerFactory.GetHandlers(Type)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Event.IEventHandlerFactory.GetHandlers(Type)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
mac-build: src/WeihanLi.Common/Event/EventHandlerFactory.cs#L47
Member 'WeihanLi.Common.Event.DependencyInjectionEventHandlerFactory.GetHandlers(Type)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Event.IEventHandlerFactory.GetHandlers(Type)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
mac-build: src/WeihanLi.Common/Aspect/AttributeInterceptorResolver.cs#L19
Member 'WeihanLi.Common.Aspect.AttributeInterceptorResolver.ResolveInterceptors(IInvocation)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IInterceptorResolver.ResolveInterceptors(IInvocation)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
mac-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L21
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
mac-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L35
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Type, params Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Type, params Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
mac-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L61
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
mac-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L21
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Object[])' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Object[])' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L21
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/AttributeInterceptorResolver.cs#L19
Member 'WeihanLi.Common.Aspect.AttributeInterceptorResolver.ResolveInterceptors(IInvocation)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IInterceptorResolver.ResolveInterceptors(IInvocation)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L35
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Type, params Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Type, params Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L61
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L21
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Object[])' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Object[])' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L35
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxy(Type, Type, params Object[])' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxy(Type, Type, params Object[])' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/DefaultProxyFactory.cs#L61
Member 'WeihanLi.Common.Aspect.DefaultProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyFactory.CreateProxyWithTarget(Type, Object, Object[])' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/DefaultProxyTypeFactory.cs#L11
Member 'WeihanLi.Common.Aspect.DefaultProxyTypeFactory.CreateProxyType(Type)' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyTypeFactory.CreateProxyType(Type)' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/DefaultProxyTypeFactory.cs#L27
Member 'WeihanLi.Common.Aspect.DefaultProxyTypeFactory.CreateProxyType(Type, Type)' with 'RequiresDynamicCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyTypeFactory.CreateProxyType(Type, Type)' without 'RequiresDynamicCodeAttribute'. 'RequiresDynamicCodeAttribute' annotations must match across all interface implementations or overrides.
windows-build: src/WeihanLi.Common/Aspect/DefaultProxyTypeFactory.cs#L11
Member 'WeihanLi.Common.Aspect.DefaultProxyTypeFactory.CreateProxyType(Type)' with 'RequiresUnreferencedCodeAttribute' implements interface member 'WeihanLi.Common.Aspect.IProxyTypeFactory.CreateProxyType(Type)' without 'RequiresUnreferencedCodeAttribute'. 'RequiresUnreferencedCodeAttribute' annotations must match across all interface implementations or overrides.