BlueCollar.Dashboard.StaticFileHandler.CreateFile C# (CSharp) Method

CreateFile() protected method

Creates a StaticFile instance corresponding with the current request.
protected CreateFile ( System.Web.HttpContextBase context ) : StaticFile
context System.Web.HttpContextBase The HTTP context to create the file for.
return StaticFile
        protected virtual StaticFile CreateFile(HttpContextBase context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context", "context cannot be null.");
            }

            return StaticFile.Create(HandlerUrl, this.RequestedFileName);
        }