Esempio n. 1
0
 /// <summary>
 ///     This constructor is associated with a given <see cref="ICustomDataProcessorWithSourceParser"/>, provided
 ///     as a parameter. <paramref name="dataExtensionRepository"/> is required to retrieve all available data
 ///     extensions.
 /// </summary>
 /// <param name="dataProcessor">
 ///     The data processor with which this object is associated.
 /// </param>
 /// <param name="dataExtensionRepository">
 ///     Provides access to a set of data extensions.
 /// </param>
 public CustomDataProcessorExtensibilitySupport(
     ICustomDataProcessorWithSourceParser dataProcessor,
     IDataExtensionRepository dataExtensionRepository)
 {
     this.dataProcessor           = dataProcessor;
     this.dataExtensionRepository = dataExtensionRepository;
     this.tableReferences         = new Dictionary <TableDescriptor, ITableExtensionReference>();
 }
Esempio n. 2
0
 public ISourceProcessingSession <T, TContext, TKey> CreateSourceSession <T, TContext, TKey>(
     ICustomDataProcessorWithSourceParser <T, TContext, TKey> customDataProcessor)
     where T : IKeyedDataType <TKey>
 {
     return(new TestSourceProcessingSession <T, TContext, TKey>()
     {
         CustomDataProcessor = customDataProcessor
     });
 }
        public ISourceProcessingSession <T, TContext, TKey> CreateSourceSession <T, TContext, TKey>(
            ICustomDataProcessorWithSourceParser <T, TContext, TKey> customDataProcessor)
            where T : IKeyedDataType <TKey>
        {
            Guard.NotNull(customDataProcessor, nameof(customDataProcessor));

            var sourceParser = customDataProcessor.SourceParser;

            if (sourceParser == null)
            {
                return(null);
            }

            return(new SourceProcessingSession <T, TContext, TKey>(sourceParser));
        }
 public IDataProcessorExtensibilitySupport CreateDataProcessorExtensibilitySupport(
     ICustomDataProcessorWithSourceParser processor)
 {
     return(new CustomDataProcessorExtensibilitySupport(processor, this.repository));
 }
 public IDataProcessorExtensibilitySupport CreateDataProcessorExtensibilitySupport(ICustomDataProcessorWithSourceParser processor)
 {
     return(CreateDataProcessorExtensibilitySupportFunc?.Invoke(processor));
 }
Esempio n. 6
0
 public IDataProcessorExtensibilitySupport CreateDataProcessorExtensibilitySupport(ICustomDataProcessorWithSourceParser processor)
 {
     throw new System.NotImplementedException();
 }