예제 #1
0
		void FederationUpdateMonitor(object sender, FederationUpdateEventArgs  e) 
		{
			UpdateInfo info = new UpdateInfo();
			info.Timestamp = DateTime.Now;
			info.Update = e.Updates;
			_Updates.Add(info);
			if (_Updates.Count > MAX_UPDATES_TO_HOLD)
				_Updates.RemoveAt(0);
		}
예제 #2
0
		void FederationUpdated(object sender, FederationUpdateEventArgs  e) 
		{
			FederationUpdate updates = e.Updates;

			ProcessFederationPropertiesChanged(updates);
			ProcessNamespaceListChanged(updates);
			ProcessChangedTopics(updates);
			ProcessChangedProperties(updates);
		}
예제 #3
0
 // Invoke the FederationUpdated event; called whenever topics or other things about the federation change
 protected virtual void OnFederationUpdated(FederationUpdateEventArgs e) 
 {
   if (FederationUpdated != null)
   {
     FederationUpdated(this, e);
   }
 }
예제 #4
0
 private void FederationUpdateMonitor(object sender, FederationUpdateEventArgs e) 
 {
   // One of the content bases we're hooked to has fired a federation update event -- just pass it on
   OnFederationUpdated(new FederationUpdateEventArgs(e.Updates));
 }