Ejemplo n.º 1
0
 public DFrameOptions(string masterListenHost, int masterListenPort, string workerConnectToHost, int workerConnectToPort, IScalingProvider scalingProvider)
 {
     MasterListenHost            = masterListenHost;
     MasterListenPort            = masterListenPort;
     WorkerConnectToHost         = workerConnectToHost;
     WorkerConnectToPort         = workerConnectToPort;
     ScalingProvider             = scalingProvider;
     Timeout                     = TimeSpan.FromMinutes(10);
     WorkerDisconnectedBehaviour = WorkerDisconnectedBehaviour.Stop;
     SerializerOptions           = TypelessContractlessStandardResolver.Options;
     HostBuilderFactory          = args => Microsoft.Extensions.Hosting.Host.CreateDefaultBuilder(args);
 }
Ejemplo n.º 2
0
 public MainPresenter(
     ICacheService <Bitmap> cache,
     INonBlockDialogService dialog,
     IAwaitablePipeline pipeline,
     IAsyncOperationLocker operation,
     IScalingProvider scale,
     IRotationProvider rotation)
 {
     _cache     = cache;
     _dialog    = dialog;
     _operation = operation;
     _scale     = scale;
     _rotation  = rotation;
     _pipeline  = pipeline;
 }
Ejemplo n.º 3
0
        public MainPresenterWrapper(
            ICacheService <Bitmap> cache,
            INonBlockDialogService dialog,
            IAwaitablePipeline pipeline,
            IAsyncOperationLocker operation,
            IScalingProvider zoom,
            IRotationProvider rotation)
        {
            Cache     = cache;
            Dialog    = dialog;
            Pipeline  = pipeline;
            Operation = operation;
            Zoom      = zoom;

            _presenter = new MainPresenter(cache, dialog, pipeline, operation, zoom, rotation);
        }