private void ReceiveMatchConfigurationUpdateEvent(object sender, MatchConfigurationUpdateEventArgs e) { var message = e.Message; var matchConfiguration = message.MatchConfiguration; SubscribedFacilityId = matchConfiguration.FacilityId; SubscribedWorldId = matchConfiguration.WorldId; if (matchConfiguration.SaveEventsToDatabase) { EnableEventStoring(); } else { DisableEventStoring(); } }
protected virtual void OnRaiseMatchConfigurationUpdateEvent(MatchConfigurationUpdateEventArgs e) { RaiseMatchConfigurationUpdateEvent?.Invoke(this, e); }