So is there a way to override service registrations in the CoreServiceRegistry? I need to swap out
FubuMvcRequestData with my own implementation. I've tried the following but it doesn't seem to have any effect:
public class Registry : FubuRegistry
{
public Registry()
{
Services(x => x.ReplaceService<IRequestData, MyRequestData>());
}
}
Also tried a configuration action but with a number of different configuration types but still no dice:
[ConfigurationType(ConfigurationType.Services)]
public class CookielessRequestData : IConfigurationAction
{
public void Configure(BehaviorGraph graph)
{
graph.Services.AddService<IRequestData, FubuMvcRequestData>();
}
}
Am I missing something here?
Thx!
m