SAM .NET middleware and example applications