public FieldCreator(IPropertyAttributeInheritor propertyAttributeInheritor, IInterfacePropertyMapper interfacePropertyMapper, IUIHintParser uiHintParser, IComposableProvider composableProvider) { PropertyAttributeInheritor = propertyAttributeInheritor; InterfacePropertyMapper = interfacePropertyMapper; UIHintParser = uiHintParser; ComposableProvider = composableProvider; }
public TypeControlMatcher(IComposableProvider composableProvider) { Mappings = composableProvider .GetAll <ITypeControlMappingCreator>() .SelectMany(c => c.Create()) .GroupBy(m => m.Type) .ToDictionary(m => m.Key, m => m.First().ControlId); }
public UIHintControlMappingProvider(IComposableProvider composableProvider) { Values = composableProvider .GetAll <IUIHintControlMappingCreator>() .SelectMany(c => c.Create()) .GroupBy(m => m.UIHintDefinition.Id) .ToDictionary(m => m.Key, m => (IEnumerable <UIHintControlMapping>)m); }
public UIHintControlMatcher(IComposableProvider composableProvider, IControlReferenceCreator controlReferenceCreator) { ControlReferenceCreator = controlReferenceCreator; Mappings = composableProvider .GetAll <IUIHintControlMappingCreator>() .SelectMany(c => c.Create()) .GroupBy(m => m.UIHintDefinition.Id) .ToDictionary(m => m.Key, m => (IEnumerable <UIHintControlMapping>)m); }
public SelectControlController(IComposableProvider composableProvider) { OptionProviders = composableProvider.GetAll <IItemProvider>().ToDictionary(p => p.GetType().GetCustomAttribute <ItemProviderAttribute>().Id, p => p); }
public BackendProvider(IComposableProvider composableProvider, IBackendCreator backendCreator) { Backends = composableProvider.GetAll <IBackendCreator>().SelectMany(c => c.CreateAll()).ToDictionary(p => p.Key, p => p.Value); }
public PolymorphicCandidateProvider(IComposableProvider composableProvider) { Candidates = composableProvider.GetAll <IPolymorphicCandidateCreator>().SelectMany(c => c.Create()).ToList().AsReadOnly(); CandidatesById = new ReadOnlyDictionary <string, PolymorphicCandidateDescriptor>(Candidates.ToDictionary(c => c.Id, c => c)); CandidatesByType = new ReadOnlyDictionary <Type, PolymorphicCandidateDescriptor>(Candidates.ToDictionary(c => c.Type, c => c)); }
public DropdownControlApiController(IComposableProvider composableProvider) { OptionProviders = composableProvider.GetAll <IOptionProvider>().ToDictionary(p => p.GetType().GetCustomAttribute <OptionProviderAttribute>().Id, p => p); }
public ScriptProvider(IComposableProvider composableProvider) { Scripts = composableProvider.GetAll <IScriptCreator>().SelectMany(c => c.Create()).ToList().AsReadOnly(); }
public FormProvider(IComposableProvider composableProvider) { Forms = composableProvider.GetAll <IFormCreator>().SelectMany(c => c.CreateAll()).ToList().AsReadOnly(); }
public FormProvider(IComposableProvider composableProvider) { Forms = composableProvider.GetAll <IFormCreator>().SelectMany(c => c.CreateAll()).ToList().AsReadOnly(); FormsById = new ReadOnlyDictionary <string, FormDescriptor>(Forms.ToDictionary(f => f.Id, f => f)); FormsByType = new ReadOnlyDictionary <Type, FormDescriptor>(Forms.ToDictionary(f => f.Type, f => f)); }
public ContentInstanceCreator(IComposableProvider composableProvider) { Initializers = composableProvider.GetAll <IContentInstanceInitializer>().ToList().AsReadOnly(); }