singrdk/base/Services/ServiceManager/ResilientServiceCreator.sg

26 lines
740 B
Plaintext

///////////////////////////////////////////////////////////////////////////////
//
// Microsoft Research Singularity
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// File: Services\ServiceManager\ServiceCreator.sg
//
// Note:
//
using System;
using Microsoft.Singularity;
using Microsoft.Singularity.Directory;
namespace Microsoft.Singularity.Services.ServiceManager
{
internal class ResilientServiceCreator : IServiceProduceable
{
public Service NewService(string! serviceName, string! binaryName)
{
return new JournalService(serviceName, binaryName,
DirectoryService.NewClientEndpoint());
}
}
}