示例#1
0
        public PropertySchema(string propertyName, Type propertyType, IComponentSchema owner)
        {
            this.Name = propertyName;
            this.PropertyType = propertyType;
            this.Owner = owner;

            this.Attributes = new List<Attribute>();
        }
 public void Configure(IComponentSchema schema, ComponentConfiguration configuration)
 {
     foreach (var automation in configuration.Automations.OfType<EventConfiguration>())
     {
         schema.AddAutomation(new EventAutomationSettings(
             automation.EventBinding,
             new CommandAutomationSettings(automation.CommandBinding)));
     }
 }
示例#3
0
 public void AddSchema(Type componentType, IComponentSchema componentSchema)
 {
     map[componentType] = componentSchema;
 }