Ejemplo n.º 1
0
        static SettingContext Create()
        {
            // SettingContext
            SettingContext settingContext = new ConfigSettingContext();

            // Return
            return(settingContext);
        }
Ejemplo n.º 2
0
        // Methods
        private void Initialize(System.Configuration.Configuration configuration)
        {
            #region Contracts

            if (configuration == null) throw new ArgumentNullException();

            #endregion

            // ReflectRepository
            IReflectRepository reflectRepository = new ConfigReflectRepository(configuration);

            // SettingContext
            SettingContext settingContext = new ConfigSettingContext(configuration);

            // Initialize
            base.Initialize(reflectRepository, settingContext);
        }
 public SettingService(ConfigSettingContext configSettingContext)
 {
     _configSettingContext = configSettingContext;
 }