Odds and end helpers over the years.
Run async code syncronously easier with:
var result = AsyncHelper.RunSync(() => foo.SomethingAsync()));
Adds basic exceptions like NotFoundException
and ForbiddenException
.
Get inner exception messages by doing the following:
try
{
//kaboom
}
catch(Exception ex)
{
var allTheExceptionsString = ErrorHelper.GetInnerExceptions(ex);
}
Get the version info from assembly meta data.
Get an embedded resource as a string
or stream
easily.