mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-05-31 15:41:33 +00:00
365e5723c1
--HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4050811
31 lines
688 B
C#
31 lines
688 B
C#
using System;
|
|
|
|
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);
|
|
}
|
|
|
|
protected virtual void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
protected Machine Machine { get; private set; }
|
|
protected DebugService DebugService { get { return Machine.Services.GetService<DebugService>(); } }
|
|
}
|
|
}
|