jonsequitur / Its.Log

Get information out of your code at runtime to send it to log files, perf counters, consoles, services, sensors. Maximum flexibility and maintainability, minimum code.
Other
13 stars 10 forks source link

Its.Log.Monitoring: monitors with signature async Task throw exceptions #36

Closed PhillipPruett closed 8 years ago

PhillipPruett commented 8 years ago

Its.Log.Monitoring: monitors with signature async Task throw exceptions

{"Message":"Cannot implicitly convert type 'void' to 'object'","Exception":"{ RuntimeBinderException: Message = Cannot implicitly convert type 'void' to 'object' | Data = { } | InnerException = [null] | TargetSite = System.Object CallSite.Target(System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, System.Object) | StackTrace = at CallSite.Target(Closure , CallSite , Object ) at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0) at Its.Log.Monitoring.MonitoringTestController.d1.MoveNext() in c:\Git\ItsLogPHP\Its.Log.Monitoring\MonitoringTestController.cs:line 88 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Threading.Tasks.TaskHelpersExtensions.d3`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Web.Http.Filters.ActionFilterAttribute.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.d2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ExceptionFilterResult.d0.MoveNext() | HelpLink = [null] | Source = Anonymously Hosted DynamicMethods Assembly | HResult = -2146233088 }"} | Headers = { HttpContentHeaders: Allow = { } | ContentDisposition = [null] | ContentEncoding = { } | ContentLanguage = { } | ContentLength = 3100 | ContentLocation = [null] | ContentMD5 = [null] | ContentRange = [null] | ContentType = application/json; charset=utf-8 | Expires = [null] | LastModified = [null] } }

jonsequitur commented 8 years ago

Fixed by https://github.com/jonsequitur/Its.Log/commit/7531bd3295f7c43eb5fbc4b38b16fa75dddef794