示例#1
0
 public ProcessorSchema(IProcessorSchema schema)
 {
     if (schema.Type != typeof(T))
     {
         throw new InvalidOperationException();
     }
     _schema = schema;
 }
示例#2
0
 public void Init(IProcessorSchema schema)
 {
     if (_schema == null || Equals(_schema, schema))
     {
         _schema = schema;
     }
     else
     {
         throw new InvalidOperationException();
     }
 }
示例#3
0
 public ProcessorEventHandlerFactory(IServiceProvider serviceProvider, IProcessorSchema schema) : base(serviceProvider)
 {
     _schema             = schema;
     SupportedEventTypes = new TypeCollection(_schema.Events);
 }