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); }
void FederationUpdated(object sender, FederationUpdateEventArgs e) { FederationUpdate updates = e.Updates; ProcessFederationPropertiesChanged(updates); ProcessNamespaceListChanged(updates); ProcessChangedTopics(updates); ProcessChangedProperties(updates); }
// 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); } }
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)); }