예제 #1
0
        public async Task Execute(Arguments arguments)
        {
            CreateSnapshotRequest request = CreateRequest();

            IDiskAnalysisProgress diskAnalysisProgress = await requestBus.PlaceRequest <CreateSnapshotRequest, IDiskAnalysisProgress>(request);

            diskAnalysisProgress.Progress += HandleAnalysisProgress;

            diskAnalysisProgress.WaitToEnd();
        }
예제 #2
0
        public async Task Execute(Arguments arguments)
        {
            CreateSnapshotRequest request = new()
            {
                PotName = PotName
            };

            IDiskAnalysisProgress diskAnalysisProgress = await requestBus.PlaceRequest <CreateSnapshotRequest, IDiskAnalysisProgress>(request);

            diskAnalysisProgress.Progress += HandleAnalysisProgress;

            diskAnalysisProgress.WaitToEnd();

            SnapshotLocation = "missing";
        }