Closed Dhairya-Sangoi closed 5 years ago
Hi I will look into this and fix this asap.
Firma: Capgemini Deutschland GmbH Aufsichtsratsvorsitzender: Antonio Schnieder • Geschäftsführer: Dr. Michael Schulte (Sprecher) • Jost Förster • Dr. Peter Lempp • Dr. Volkmar Varnhagen
Amtsgericht Berlin-Charlottenburg, HRB 98814 This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
I uploaded a new package with the fix. Please confirm
Thanks for the quick fix. Will confirm and let you know.
Confirmed. Works as expected! Thanks for the quick fix :)
Hey,
It seems there is a bug in weaving async methods.
Attribute:
Annotated class method:
Decompiled weaved code:
As it can be seen, the
object[] values
inIAsyncStateMachine.MoveNext()
is not getting initialized with the actual parameters that should be passed to the method.This bug seems to be arising from
Cauldron\Fody\Cauldron.Interception.Cecilator\Coders\Default\Coder.cs
file.I think this could fix the bug:
In
GetParametersArray()
method, changing:to
This could be happening because, in case of async methods, the
associatedMethod
is an object of typeAsyncStateMachineMoveNextMethod
for which theassociatedMethod.methodReference.Parameters.Count
is 0.