Skip to content

Method 'TriggerFired' in type 'CrystalQuartz.Core.Quartz2.Quartz2SchedulerEventSource' from assembly 'CrystalQuartz.AspNetCore,  #79

Open
@guazilalala

Description

Unable to load one or more of the requested types.
Method 'TriggerFired' in type 'CrystalQuartz.Core.Quartz2.Quartz2SchedulerEventSource' from assembly 'CrystalQuartz.AspNetCore, Version=6.8.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

public static Type[] GetAllTypes(this AppDomain @this, bool fromCache = true)
    {
        if (fromCache && (typeCache == null || !typeCache.Any()) || !fromCache)
        {
            typeCache = @this.GetExcutingAssemblies()
                .SelectMany(x =>
                {
                    try
                    {
                        return x.DefinedTypes.Select(t => t.AsType()); // Throw System.Reflection.ReflectionTypeLoadException
					}
                    catch (ReflectionTypeLoadException ex)
                    {
                        return ex.Types.Where(t => t != null);
                    }
                }).ToArray();
        }

        return typeCache;
}

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions