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);
     }
 }
예제 #3
0
 private DynamicDataStore GetStore()
 {
     return(_dataStoreFactory.GetStore(typeof(ExternalReviewLinkDds)) ?? _dataStoreFactory.CreateStore(typeof(ExternalReviewLinkDds)));
 }
예제 #4
0
        /// <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);
        }
예제 #5
0
 private DynamicDataStore GetStore()
 {
     return(_dataStoreFactory.GetStore(typeof(ApprovalReview)) ?? _dataStoreFactory.CreateStore(typeof(ApprovalReview)));
 }
 private DynamicDataStore GetStore()
 {
     return(_dataStoreFactory.GetStore(typeof(ProjectSettings)) ?? _dataStoreFactory.CreateStore(typeof(ProjectSettings)));
 }