private void InitServiceCreator(BcatServiceType type, string name, AccessControl accessControl) { lock (_bcatServiceInitLocker) { Debug.Assert((uint)type < ServiceTypeCount); ServiceCreators[(int)type] = new ServiceCreator(this, name, accessControl); } }
private void InitBcatService(BcatServiceType type, string name, AccessControl accessControl) { InitServiceCreator(type, name, accessControl); IServiceCreator service = GetServiceCreator(type); Result rc = Hos.Sm.RegisterService(new BcatServiceObject(service), name); if (rc.IsFailure()) { throw new HorizonResultException(rc, "Abort"); } }
private IServiceCreator GetServiceCreator(BcatServiceType type) { Debug.Assert((uint)type < ServiceTypeCount); return(ServiceCreators[(int)type]); }