te
This commit is contained in:
parent
01151e679b
commit
57b2f0400e
265 changed files with 22828 additions and 6 deletions
38
Unused/Decal.Adapter/ServiceProxy.cs
Normal file
38
Unused/Decal.Adapter/ServiceProxy.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
using Decal.Interop.Core;
|
||||
|
||||
namespace Decal.Adapter;
|
||||
|
||||
public sealed class ServiceProxy : IDecalService, IDecalDirectory
|
||||
{
|
||||
private ServiceBase wrapped;
|
||||
|
||||
internal ServiceProxy(ServiceBase toWrap)
|
||||
{
|
||||
wrapped = toWrap;
|
||||
}
|
||||
|
||||
void IDecalService.AfterPlugins()
|
||||
{
|
||||
wrapped.ServiceEvent(ServiceBase.ServiceEventType.AfterPluigins);
|
||||
}
|
||||
|
||||
void IDecalService.BeforePlugins()
|
||||
{
|
||||
wrapped.ServiceEvent(ServiceBase.ServiceEventType.BeforePlugins);
|
||||
}
|
||||
|
||||
void IDecalService.Initialize(DecalCore pDecal)
|
||||
{
|
||||
wrapped.standardEvent(ExtensionEvents.Startup);
|
||||
}
|
||||
|
||||
void IDecalService.Terminate()
|
||||
{
|
||||
wrapped.standardEvent(ExtensionEvents.Shutdown);
|
||||
}
|
||||
|
||||
object IDecalDirectory.Lookup(string strName)
|
||||
{
|
||||
return wrapped.ResolvePath(strName);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue