|
using System;
namespace kae.ServiceStatePublisher
{
/// <summary>
/// ServiceStateUnknown implements a a concrete state
/// class in the State Pattern.
/// The Singleton Pattern is also used to limit this class
/// to one instance for the application.
/// </summary>
public class ServiceStateUnknown : ServiceState
{
private static ServiceStateUnknown _instance;
static ServiceStateUnknown()
{
lock (typeof(ServiceStateUnknown))
{
if (_instance == null)
_instance = new ServiceStateUnknown();
}
}
public static ServiceStateUnknown Instance
{
get { return _instance; }
}
public override string Status
{
get { return "Unknown"; }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Dwight D. Eisenhower wrote: "In battle, I believe plans are useless; however, planning is indespensable."
Hmm, perhaps he was an early adopter of agile beliefs?!