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