Stumps.StumpsContextEventArgs.StumpsContextEventArgs C# (CSharp) Method

StumpsContextEventArgs() private method

Initializes a new instance of the T:Stumps.StumpsContextEventArgs class.
private StumpsContextEventArgs ( IStumpsHttpContext context ) : System
context IStumpsHttpContext The associated with the event.
return System
        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;
        }
StumpsContextEventArgs