Questions tagged [castle-dictionaryadapter]
7 questions
3
votes
2 answers
How can I use just the DictionaryAdapter from Castle Core 2.5.2?
I want to use just the DictionaryAdapter from Castle Core 2.5.2 in an old app that already uses Castle Core 1.2. Is there a way to keep apart the common parts of these libraries, except compiling just DictionaryAdapter from source?

alexandrul
- 12,856
- 13
- 72
- 99
2
votes
1 answer
Enumerate through a DictionaryAdapter passed to OnFlushDirty
I am attempting to use the OnFlushDirty method of a Castle.ActiveRecord object in order to implement generic auditing of changes:
protected override bool OnFlushDirty(object id,
IDictionary previousState,
…

Kynth
- 2,597
- 1
- 18
- 24
1
vote
0 answers
Castle DictionaryAdapter or JSON for reading app settings with nested dictionaries
I need to read my application settings as a dictionary like this: App1: values1, App2: values2, App3: values3, where values are having properties like Label (string) and EnvVar (dictionary < string, string >).
So far I have two options:
Is it…

alexandrul
- 12,856
- 13
- 72
- 99
1
vote
1 answer
Add Methods to Castle DictionaryAdapterFactory Interface
I'm following the tutorial on this site which talks about using the Castle DictionaryAdapterFactory and an interface to access an applications app.setting keys without using strings throughout your code.
The way it works is you define an Interface…

Michael Shnitzer
- 2,465
- 6
- 25
- 34
1
vote
2 answers
How to tell dictionaryAdapter to watch for changes from ConfigurationManager.AppSettings?
I use DictionaryAdapter to retrieve settings from appSettings section of my asp.net website.
The IoC configuration is done once, at the startup time and all kinds of different interfaces with getters are being registered with using single…

Łukasz Podolak
- 958
- 3
- 12
- 24
1
vote
0 answers
With WebAPI, how do I use a CustomCreationConverter to return a Castle DictionaryAdapter for an interface parameter binding?
I'm working with Microsoft WebAPI using the Json.NET serializer and I'm trying to use controller parameter binding to instantiate a Castle DictionaryAdapter as the deserialized object from JSON. (This will allow us to detect whether certain…

Mark Draughn
- 11
- 1
0
votes
1 answer
String format for Castle DictionaryAdapter
I'm using Castle DictionaryAdapter in order to get the application settings from the app.config as an interface ( based on Getting rid of strings (3): take your app settings to the next level ):
public interface ISettings {
int MaxUsers { get; }
…

alexandrul
- 12,856
- 13
- 72
- 99