public void RegisterServices() { var guid = Guid.NewGuid(); _shuttleDomain.RegisterServiceGroup(ref guid, new ServiceTypePair(typeof(IRemoteLifetimeService), typeof(RemoteLifetimeService)), new ServiceTypePair(typeof(ISingletonService), typeof(SingletonService))); }
public void RegisterServices() { // 注册服务组时,需要传递一个 Guid 对象 // A Guid is needed when registering service group var guid = Guid.NewGuid(); _shuttleDomain.RegisterServiceGroup(ref guid, new ServiceTypePair(typeof(ISimpleService), typeof(SimpleService))); }