解决MySql布尔型新旧版本兼容问题,采用枚举来表示布尔型的数据表。由正向工程赋值
大石头 authored at 2018-05-15 21:21:05
416.00 B
X
namespace System.Threading.Tasks;

internal class SynchronizationContextContinuation : IContinuation
{
	private readonly Action action;

	private readonly SynchronizationContext ctx;

	public SynchronizationContextContinuation(Action action, SynchronizationContext ctx)
	{
		this.action = action;
		this.ctx = ctx;
	}

	public void Execute()
	{
		ctx.Post(delegate(object l)
		{
			((Action)l)();
		}, action);
	}
}