예제 #1
0
 public FieldsProcessorImpl(
     InitializationParams initializationParams,
     IEnumerable <string> inputFieldNames,
     IEnumerable <ExtensionInfo> extensions,
     Persistence.IStorageEntry cacheEntry,
     LJTraceSource trace,
     Telemetry.ITelemetryCollector telemetryCollector,
     IMetadataReferencesProvider metadataReferencesProvider,
     IAssemblyLoader assemblyLoader
     )
 {
     if (inputFieldNames == null)
     {
         throw new ArgumentNullException(nameof(inputFieldNames));
     }
     initializationParams.InitializeInstance(this);
     if (extensions != null)
     {
         this.extensions.AddRange(extensions);
     }
     this.inputFieldNames            = inputFieldNames.Select((name, idx) => name ?? string.Format("Field{0}", idx)).ToList();
     this.cacheEntry                 = cacheEntry;
     this.trace                      = trace;
     this.telemetryCollector         = telemetryCollector;
     this.metadataReferencesProvider = metadataReferencesProvider;
     this.assemblyLoader             = assemblyLoader;
 }
예제 #2
0
 public Factory(
     Persistence.IStorageManager storageManager,
     Telemetry.ITelemetryCollector telemetryCollector,
     IMetadataReferencesProvider metadataReferencesProvider,
     IAssemblyLoader assemblyLoader
     )
 {
     this.cacheEntry                 = storageManager.GetEntry("user-code-cache", 0x81012232);
     this.telemetryCollector         = telemetryCollector;
     this.metadataReferencesProvider = metadataReferencesProvider ?? new DefaultMetadataReferencesProvider();
     this.assemblyLoader             = assemblyLoader ?? new DefaultAssemblyLoader();
 }