//
//
// Copyright (C) Microsoft. All rights reserved.
//
//
using System;
using System.Globalization;
using Microsoft.WindowsServerSolutions.Dashboard.Addins.Home;
namespace WSSHomepageQuickStatus
{
///
/// The Sample class demonstrates how to implement ITaskStatusQuery
/// synchronously. Simply derive from helper class SyncTaskStatusQuery
/// and implement QueryTaskStatus and everything is done.
///
public class SyncQuickStatus : SyncTaskStatusQuery
{
public SyncQuickStatus()
{
}
///
/// All query logic goes here, and synchronously.
///
///
/// It is possible this routine will be aborted if the query logic takes
/// too long to complete.
///
/// Queried result
protected override TaskQuickStatus QueryTaskStatus()
{
return new TaskQuickStatus()
{
Title = Resources.SyncStatusTitle,
Details = Resources.SyncStatusDetails,
Mark = DateTime.Now.ToString(CultureInfo.CurrentCulture),
StatusTips = String.Empty
};
}
}
}