OSLC / oslc4net

A dotnet SDK for OSLC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StockQuoteSample attempts to access HTTP request object during app startup

berezovskyi opened this issue · comments

In OSLC4Net.StockQuoteSample.WebApiConfig#Register context.Request is being accessed.

.NET throws an exception:

System.Web.HttpException: Request is not available in this context

Which is reasonable as the method is called outside an HTTP request.