Merge pull request #238 from brook2006/patch-1
Operation is not supported on this platform
This commit is contained in:
commit
53b3a954a3
|
@ -2049,7 +2049,7 @@ namespace AsterNET.Manager
|
||||||
{
|
{
|
||||||
if (enableEvents && internalEvent != null)
|
if (enableEvents && internalEvent != null)
|
||||||
if (UseASyncEvents)
|
if (UseASyncEvents)
|
||||||
internalEvent.BeginInvoke(this, e, new AsyncCallback(eventComplete), null);
|
Task.Run(() => internalEvent.Invoke(this, e)).ContinueWith(eventComplete);
|
||||||
else
|
else
|
||||||
internalEvent.Invoke(this, e);
|
internalEvent.Invoke(this, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue