public void Process(InstallationUnregistered @event) { var installationsList = _repositoryForInstallationsList.GetById(0); installationsList.Installations.Remove(@event.InstallationId); _repositoryForInstallationsList.Update(installationsList); var repositoriesList = _repositoryForRepositoriesList.GetById(0); @event.Repositories.ForEach(name => repositoriesList.Repositories.Remove(name)); _repositoryForRepositoriesList.Update(repositoriesList); _repositoryForInstallationRepositories.Delete(new InstallationRepositories { Id = @event.InstallationId, }); }
public void Process(InstallationUnregistered @event) { var installationId = new Octokit.InstallationId(@event.InstallationId); _tenantMapper.DisassociateTenantFromInstallation(installationId.Id); }
void On(InstallationUnregistered @event) { _installations.Remove(@event.InstallationId); }