public Dictionary<Type, Type> GetAllSingleServices()
{
Dictionary<Type, Type> result = new Dictionary<Type, Type>();
FieldInfo field = RequestContext.Configuration.Services.GetType().GetField("_defaultServicesSingle",
BindingFlags.NonPublic | BindingFlags.Instance);
Dictionary<Type, object> services = (Dictionary<Type, object>)field.GetValue(RequestContext.Configuration.Services);
foreach (var s in services)
{
result.Add(s.Key, s.Value==null?null:s.Value.GetType());
}
return result;
}