public void Deactivate(string projectId) { if (!IsActivated(projectId)) { return; } ProjectServiceHooks.Remove(projectId); }
public bool IsActivated(string projectId) => ProjectServiceHooks.ContainsKey(projectId);
public IEnumerable <string> GetServiceHookIds(string projectId) => ProjectServiceHooks.ContainsKey(projectId) ? ProjectServiceHooks[projectId] : Enumerable.Empty <string>();