Exemplo n.º 1
0
        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="runtime">provides the engine runtime and services</param>
        /// <param name="spec">the parameters for this adapter</param>

        public CSVInputAdapter(EPRuntime runtime, CSVInputAdapterSpec spec)
            : base(runtime, spec.IsUsingEngineThread, spec.IsUsingExternalTimer, spec.IsUsingTimeSpanEvents)
        {
            Coercer        = new BasicTypeCoercer();
            _adapterSpec   = spec;
            _eventTypeName = _adapterSpec.EventTypeName;
            _eventsPerSec  = spec.EventsPerSec;

            if (runtime != null)
            {
                FinishInitialization(runtime, spec);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="container">The container.</param>
        /// <param name="epService">provides the engine runtime and services</param>
        /// <param name="spec">the parameters for this adapter</param>

        public CSVInputAdapter(IContainer container, EPServiceProvider epService, CSVInputAdapterSpec spec)
            : base(epService, spec.IsUsingEngineThread, spec.IsUsingExternalTimer, spec.IsUsingTimeSpanEvents)
        {
            Coercer        = new BasicTypeCoercer();
            _adapterSpec   = spec;
            _eventTypeName = _adapterSpec.EventTypeName;
            _eventsPerSec  = spec.EventsPerSec;
            _container     = container;

            if (epService != null)
            {
                FinishInitialization(epService, spec);
            }
        }