Slide 21
Slide 21 text
.NET 1.1+ APM
public class AsynchronousProgrammingModelWrapper
{
private readonly IAsynchronousProgrammingModel _apm;
// Constructor
public Task SomethingAsync()
{
return Task.Factory.FromAsync(
_apm.BeginSomething, _apm.EndSomething, null);
}
}
https://gist.github.com/alextercete/f34691cb9e4df4d2e78b