internal StumpsContextEventArgs(IStumpsHttpContext context)
{
if (context == null)
{
throw new ArgumentNullException("context");
}
var stumpsResponse = context.Response as StumpsHttpResponse;
if (stumpsResponse != null)
{
this.ResponseOrigin = stumpsResponse.Origin;
this.StumpId = stumpsResponse.StumpId;
}
else
{
this.ResponseOrigin = HttpResponseOrigin.Unprocessed;
this.StumpId = null;
}
this.Context = context;
}