mirror of
https://github.com/mgroves/MonodroidStockPortfolio.git
synced 2024-12-29 11:17:07 +00:00
13 lines
No EOL
334 B
C#
13 lines
No EOL
334 B
C#
using System.Threading;
|
|
using PostSharp.Aspects;
|
|
|
|
namespace MonoStockPortfolio.Framework
|
|
{
|
|
public class OnWorkerThreadAttribute : MethodInterceptionAspect
|
|
{
|
|
public override void OnInvoke(MethodInterceptionArgs args)
|
|
{
|
|
ThreadPool.QueueUserWorkItem(d => args.Proceed());
|
|
}
|
|
}
|
|
} |