private void RegisterResource(IClientResource resource) { _registeredResources.Add(resource); resource.StartListen(); resource.Subscribe(this); if (IsAccepted(resource)) { AddResource(resource); } }