Exemplo n.º 1
0
		public bool AddRegistration(UrlRegistration registration) {
			managedRegistrations.Add (registration);
			logger (string.Format ("Registered: {0}", registration));
			// make sure we are up to date with Castoriadis registrations
			this.agora.Refresh ();
			return true;
		}
Exemplo n.º 2
0
		public bool RemoveRegistration(UrlRegistration registration) {
			var target = managedRegistrations.FirstOrDefault (r => r.Topic == registration.Topic);
			if (target == null) {
				return false;
			}
			managedRegistrations.Remove (target);
			logger (string.Format ("Unregistered: {0}", target));
			return true;
		}