.Net Core 2.1 委托报错 delegate Operation is not suppo

2019-01-02 20:59发布

各位大神:

  我想问下.Net Core 2.1委托调用方法是报错,以下是保存信息和源码,求各位大神指导一下,没有用第三方框架。

System.PlatformNotSupportedException: Operation is not supported on this platform.
at Uwl.Common.LogsMethod.Log.dgWriteLog.BeginInvoke(Logs logs, AsyncCallback callback, Object object)
at Uwl.Common.LogsMethod.Log.Add(Logs logs) in F:\Project\Uwl.WebApi\I_Sfront.WebApi\Uwl.Common\LogsMethod\Log.cs:line 33
at Uwl.Common.LogsMethod.Log.Add(String Title, String Contents, Types types, String oldXML, String newXML) in F:\Project\Uwl.WebApi\I_Sfront.WebApi\Uwl.Common\LogsMethod\Log.cs:line 60
at Iview.WebApi.Controllers.AuthorizeController.Token(LoginViewModel loginViewModel) in F:\Project\Uwl.WebApi\I_Sfront.WebApi\Iview.WebApi\Controllers\AuthorizeController.cs:line 62

1条回答
与风俱净
2楼-- · 2019-01-02 21:17

委托调用建议使用Func<>这个方法,更清晰呦

查看更多
登录 后发表回答