ConfigManager
Dynamic Configuration Manager
Install / Use
/learn @cihanyesiltas/ConfigManagerREADME
ConfigManager
Projenin amacı dinamik bir konfigürasyon yapısı ile web.config, app.config gibi dosyalarda tutulan appkey’lerin ortak bir yapıyla erişilebilir olması ve deployment veya restart, recycle gerektirmeden güncellemelerin yapılabilir olmasıdır. Kütüphane veritabanına ulaşamadığı durumda son başarılı konfigürasyon kayıtları ile çalışmaktadır.
ConfigManager.Core kütüphanesi dll olarak eklenip kullanılabilmektedir. Farklı framework'leri desteklemesi açısından .net standard 2.0 olarak oluşturulmuştur. Verilerin tutulması için MongoDB ve PostgreSQL desteklemektedir. Ayrıca cache için de
Redis kullanılmaktadır.
Kullanım
Kütüphane projeye eklendikten sonra aşağıdaki gibi kullanılabilir.
IConfigurationReaderFactory readerFactory = new ConfigurationReaderFactory();
IConfigurationReader reader = readerFactory.Create("ApplicationName", connection, refreshTimeIntervalInMs));
var value = reader.GetValue<string>("TestKey");
ApplicationName: Uygulamanızın adı. Her uygulama kendi verilerine ulaşabilmesi için verilecek tekil ad.
Connection: Verilerin tutulacağı depolama alanı bilgileri. Örn: new Connection("connectionString", StorageProviderType.MongoDb))
RefreshTimeIntervalInMs: ConfigurationReader bu süre aralığıyla veritabanına yeni eklenen veya güncellenen bilgiler varsa cache'i günceller.
Test Veritabanı Ortamları
Testler aşamasında veritabanları için aşağıdaki docker komutları kullanılmıştır.
PostgreSQL docker container
docker run -p 1500:5432 --name cont-postgres -e POSTGRES_PASSWORD=pass -d postgres
Mongodb docker container
docker run --name database -d -p 27017:27017 mongo --noauth --bind_ip=0.0.0.0
Related Skills
diffs
341.6kUse the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.
clearshot
Structured screenshot analysis for UI implementation and critique. Analyzes every UI screenshot with a 5×5 spatial grid, full element inventory, and design system extraction — facts and taste together, every time. Escalates to full implementation blueprint when building. Trigger on any digital interface image file (png, jpg, gif, webp — websites, apps, dashboards, mockups, wireframes) or commands like 'analyse this screenshot,' 'rebuild this,' 'match this design,' 'clone this.' Skip for non-UI images (photos, memes, charts) unless the user explicitly wants to build a UI from them. Does NOT trigger on HTML source code, CSS, SVGs, or any code pasted as text.
openpencil
1.9kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
HappyColorBlend
HappyColorBlendVibe Project Guidelines Project Overview HappyColorBlendVibe is a Figma plugin for color palette generation with advanced tint/shade blending capabilities. It allows designers to
