You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More details necessary, but I'm basing the idea on some of my previous work w/ FubuMVC or StructureMap.
Something like:
StoreOptions.Policies.OnDocuments<T>() where T : IDocumentPolicy
StoreOptions.Policies.OnDocuments(IDocumentPolicy policy)
StoreOptions.Policies.OnFields<T>() where T : ILocatorPolicy
StoreOptions.Policies.OnFields(ILocatorPolicy policy)
public interface IDocumentPolicy
{
// Optionally alter how the document type is stored
void Apply(DocumentMapping mapping);
}
// Each registered policy would get applied to JsonLocatorField's within the DocumentMapping
public interface ILocatorPolicy
{
// Optionally alter JsonLocatorField's. Thinking this would be valuable for
// some of the F# specific mapping we're already running into.
void Apply(JsonLocatorField);
}
The text was updated successfully, but these errors were encountered:
More details necessary, but I'm basing the idea on some of my previous work w/ FubuMVC or StructureMap.
Something like:
The text was updated successfully, but these errors were encountered: