Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of <see cref="ApplicationResourceTypes"/>
        /// </summary>
        /// <param name="applicationResourceTypes"></param>
        public ApplicationResourceTypes(IInstancesOf <IApplicationResourceType> applicationResourceTypes)
        {
            var all = applicationResourceTypes.ToArray();

            _resourceTypesByIdentifier = all.ToDictionary(r => r.Identifier, r => r);
            _resourceTypesByType       = all.ToDictionary(r => r.Type, r => r);
        }