private DynamicDataStore GetRoutingFacetNameStore() { const string routingFacetNames = "RoutingFacetNames"; return(_dynamicDataStoreFactory.GetStore(routingFacetNames) ?? _dynamicDataStoreFactory.CreateStore(routingFacetNames, typeof(RouteFacetModel))); }
public void SaveWebhook(Webhook webhook) { using (var store = _dataStoreFactory.CreateStore(typeof(Webhook))) { store.Save(webhook); } }
private DynamicDataStore GetStore() { return(_dataStoreFactory.GetStore(typeof(ExternalReviewLinkDds)) ?? _dataStoreFactory.CreateStore(typeof(ExternalReviewLinkDds))); }
/// <summary> /// Loads the Disqus configuration from DDS. /// </summary> /// <returns></returns> public IConfiguration Load() { ConfigurationEntity settingsEntity; using (var store = _storeFactory.GetStore(typeof(ConfigurationEntity)) ?? _storeFactory.CreateStore(typeof(ConfigurationEntity))) { settingsEntity = store.Items <ConfigurationEntity>().FirstOrDefault(); } if (settingsEntity == null) { return(CreateDefaultConfiguration()); } var settings = CreateConfiguration(settingsEntity); // TODO: cache settings? return(settings); }
private DynamicDataStore GetStore() { return(_dataStoreFactory.GetStore(typeof(ApprovalReview)) ?? _dataStoreFactory.CreateStore(typeof(ApprovalReview))); }
private DynamicDataStore GetStore() { return(_dataStoreFactory.GetStore(typeof(ProjectSettings)) ?? _dataStoreFactory.CreateStore(typeof(ProjectSettings))); }