예제 #1
0
        private ICanvasWorker <TCanvasInput, TCanvasOutput> GetCanvasWorker <TCanvasInput, TCanvasOutput>(ICanvasCnvCaller <TCanvasInput, TCanvasOutput> canvasCnvCaller, Func <IFileLocation, TCanvasOutput> getFromStub) where TCanvasInput : ICanvasCheckpointInput where TCanvasOutput : ICanvasOutput
        {
            if (!RunCnvDetection(_detectCnvDefault))
            {
                return(new NullCanvasWorker <TCanvasInput, TCanvasOutput>());
            }

            ICanvasAnnotationFileProvider annotationFileProvider = GetAnnotationFileProvider();
            var canvasOutputNamingConventionFactory = new CanvasOutputNamingConventionFactory <TCanvasInput, TCanvasOutput>(annotationFileProvider, getFromStub);
            var canvasCheckpoint = new CanvasCheckpoint <TCanvasInput, TCanvasOutput>(canvasCnvCaller, canvasOutputNamingConventionFactory);

            return(new CanvasWorker <TCanvasInput, TCanvasOutput>(canvasCheckpoint));
        }
예제 #2
0
 public CanvasCheckpoint(ICanvasCnvCaller <TCanvasInput, TCanvasOutput> canvasCnvCaller, CanvasOutputNamingConventionFactory <TCanvasInput, TCanvasOutput> canvasOutputNamingConventionFactory)
 {
     _canvasCnvCaller = canvasCnvCaller;
     _canvasOutputNamingConventionFactory = canvasOutputNamingConventionFactory;
 }