BlueCollar.Dashboard.DashboardStatsHandler.PerformRequest C# (CSharp) Метод

PerformRequest() защищенный Метод

Performs the concrete request operation and returns the output as a byte array.
protected PerformRequest ( System.Web.HttpContextBase context ) : byte[]
context System.Web.HttpContextBase The HTTP context to perform the request for.
Результат byte[]
        protected override byte[] PerformRequest(HttpContextBase context)
        {
            DateTime now = DateTime.UtcNow.FloorWithSeconds();
            DateTime distant = now.AddDays(-14);
            DateTime recent = now.AddDays(-1);

            return Json(Repository.GetStatistics(ApplicationName, recent, distant, now, null));
        }