コード例 #1
0
        public ProviderDefinition(ProviderDefinitionDescription description)
        {
            if (description == null)
            {
                throw new ArgumentNullException("description");
            }

            this.description = description;
            this.stack       = new EventStack();

            this.events = new Dictionary <int, EventDefinition>();
            this.stack  = new EventStack();

            foreach (var eventDefinitionDescription in description.Events)
            {
                this.events.Add(eventDefinitionDescription.Key, new EventDefinition(eventDefinitionDescription.Value, this.stack));
            }
        }
コード例 #2
0
 internal ProviderDefinition(ProviderDefinitionDescription description, Dictionary <int, EventDefinition> events)
 {
     this.description = description;
     this.events      = events;
 }