.NET Core 2.1 Exception
andymac4182 opened this issue · 0 comments
andymac4182 commented
In ReflectionExtensions.GetTaskResult
typeInfo.GetDeclaredProperty("Result")
is returning null causing an exception. This is throwing in the unit tests when targeting netcoreapp2.1 as well.
System.NullReferenceException : Object reference not set to an instance of an object.
at Enexure.MicroBus.ReflectionExtensions.GetTaskResult(Task task) in C:\Users\andrewm\Downloads\Enexure.MicroBus-master\Enexure.MicroBus-master\src\Enexure.MicroBus\Implementation\ReflectionExtensions.cs:line 57
at Enexure.MicroBus.PipelineRunBuilder.RunHandlers(IReadOnlyCollection`1 leafHandlerTypes, Object message, CancellationToken cancellation) in C:\Users\andrewm\Downloads\Enexure.MicroBus-master\Enexure.MicroBus-master\src\Enexure.MicroBus\Implementation\PipelineRunBuilder.cs:line 128
at Enexure.MicroBus.PipelineRunBuilder.<>c__DisplayClass7_0.<<BuildNextHandler>b__0>d.MoveNext() in C:\Users\andrewm\Downloads\Enexure.MicroBus-master\Enexure.MicroBus-master\src\Enexure.MicroBus\Implementation\PipelineRunBuilder.cs:line 84
--- End of stack trace from previous location where exception was thrown ---
at Enexure.MicroBus.MicroBus.RunPipelineAsync(Object message, CancellationToken cancellation) in C:\Users\andrewm\Downloads\Enexure.MicroBus-master\Enexure.MicroBus-master\src\Enexure.MicroBus\Implementation\MicroBus.cs:line 63
at Enexure.MicroBus.Autofac.Tests.ScopesAndDisposeTests.InTheDefaultAutofacScopeCommandHandlersShouldFinishBeforeTheScopeIsDisposed() in C:\Users\andrewm\Downloads\Enexure.MicroBus-master\Enexure.MicroBus-master\src\Enexure.MicroBus.Autofac.Tests\ScopesAndDisposeTests.cs:line 101
--- End of stack trace from previous location where exception was thrown ---