public ContentTypeProvider(IContentTypeCreator contentTypeCreator) { ContentTypes = contentTypeCreator.Create().ToList().AsReadOnly(); ContentTypesByType = ContentTypes.ToDictionary(t => t.Type, t => t); ContentTypesById = ContentTypes.ToDictionary(t => t.Id, t => t); }