Closed dermeister0 closed 6 years ago
QueryObjectResolverMiddleware crashes if I have 2 interface implementations with QueryHandlers in assembly.
ArgumentException: An item with the same key has already been added. Key: MyProject.Domain.Queries.IMyQueries System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(object key) System.Collections.Generic.Dictionary.TryInsert(TKey key, TValue value, InsertionBehavior behavior) System.Collections.Generic.Dictionary.Add(TKey key, TValue value) System.Linq.Enumerable.ToDictionary<TSource, TKey, TElement>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer) Saritasa.Tools.Messages.Queries.PipelineMiddlewares.QueryObjectResolverMiddleware..ctor(Assembly[] assemblies)
I would like to register correct implementation in my IoC container. Need to ignore interfaceResolveDict if UseInternalObjectResolver is false.
interfaceResolveDict
UseInternalObjectResolver
QueryObjectResolverMiddleware crashes if I have 2 interface implementations with QueryHandlers in assembly.
I would like to register correct implementation in my IoC container. Need to ignore
interfaceResolveDict
ifUseInternalObjectResolver
is false.