コード例 #1
0
 /// <summary>
 /// Used to load a named feature from an abstract location.
 /// </summary>
 public static Feature Load(string name, ISourceResolver finder)
 {
     using (var stream = finder.Resolve(name))
     {
         return(Load(stream));
     }
 }
コード例 #2
0
 public Distributor(ISourceResolver sourceResolver, IWorkerExecutor workerExecutor, IResultsFetcher resultsFetcher, IResultsStorer resultsStorer)
 {
     _sourceResolver = sourceResolver;
     _workerExecutor = workerExecutor;
     _resultsFetcher = resultsFetcher;
     _resultsStorer  = resultsStorer;
 }
コード例 #3
0
 public IncomeUpdater(BudgetContext context, ISourceResolver sourceResolver,
                      IClientSourceResolver clientSourceResolver, IMapper mapper)
 {
     _context              = context;
     _sourceResolver       = sourceResolver;
     _mapper               = mapper;
     _clientSourceResolver = clientSourceResolver;
 }
コード例 #4
0
ファイル: IncomeAdder.cs プロジェクト: vaidasmac04/BudgetAPI
 public IncomeAdder(BudgetContext context, ISourceResolver sourceResolver,
                    IClientSourceResolver clientSourceReolver, IUserAccessor userAccessor)
 {
     _context              = context;
     _sourceResolver       = sourceResolver;
     _userAccessor         = userAccessor;
     _clientSourceResolver = clientSourceReolver;
 }
コード例 #5
0
 public LoggingSourceResolver(
     ISourceResolver sourceResolver,
     ILoggingSourceFactory loggingSourceFactory,
     ILoggingContentStorageSourceFactory loggingContentStorageSourceFactory)
 {
     _sourceResolver       = sourceResolver;
     _loggingSourceFactory = loggingSourceFactory;
     _loggingContentStorageSourceFactory = loggingContentStorageSourceFactory;
 }
コード例 #6
0
 public DistributorEntryPoint(ISourceResolver resolver, IWorkerExecutor executor, IResultsFetcher resultsFetcher, IResultsStorer resultsStorer)
 {
     _distributor = new Distributor(resolver, executor, resultsFetcher, resultsStorer);
 }
コード例 #7
0
ファイル: Versioner.cs プロジェクト: asjuan/dotVersioner
 public Versioner(ISourceResolver resolver, IFileEditor editor)
 {
     this.resolver = resolver;
     this.editor   = editor;
 }