I would like to register the NServiceBus endpoint with Unity in order to resolve the IEndpontInstance interface.
Unfortunatly, this line throws an exception:
var endpoint = Endpoint.Start(endpointConfiguration).GetAwaiter().GetResult();
Exception:System.TypeLoadException: ‘Method ‘GetValue’ in type ‘NServiceBus.Unity.SingletonLifetimeManager’ from assembly ‘NServiceBus.ObjectBuilder.Unity, Version=8.0.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c’ does not have an implementation.’
I’ve tried to exclude that assembly but without success.
Any help is very much welcome.
Kind regards