mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-06-06 08:29:29 +00:00
bc4caaf2b1
--HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4046550
40 lines
812 B
C#
40 lines
812 B
C#
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
namespace Jellyfish.Virtu.Services
|
|
{
|
|
public abstract class MachineService : IDisposable
|
|
{
|
|
protected MachineService(Machine machine)
|
|
{
|
|
Machine = machine;
|
|
}
|
|
|
|
~MachineService()
|
|
{
|
|
Dispose(false);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Dispose(true);
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
|
|
public virtual void Start()
|
|
{
|
|
}
|
|
|
|
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Stop")]
|
|
public virtual void Stop()
|
|
{
|
|
}
|
|
|
|
protected virtual void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
protected Machine Machine { get; private set; }
|
|
}
|
|
}
|