Skip to content

Commit 94b5d07

Browse files
authored
fix for #40 (#48)
1 parent 422d8c4 commit 94b5d07

File tree

4 files changed

+6
-47
lines changed

4 files changed

+6
-47
lines changed

build.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

source/Diol/src/Diol.Wpf.Core/MainModule.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Prism.Ioc;
1+
using Diol.Share.Services;
2+
using Prism.Ioc;
23
using Prism.Modularity;
34
using Prism.Regions;
45

@@ -15,8 +16,10 @@ public class MainModule : IModule
1516
/// <param name="containerProvider">The container provider.</param>
1617
public void OnInitialized(IContainerProvider containerProvider)
1718
{
18-
var regionManager = containerProvider.Resolve<IRegionManager>();
19+
var applicationStateService = containerProvider.Resolve<IApplicationStateService>();
20+
applicationStateService.Subscribe();
1921

22+
var regionManager = containerProvider.Resolve<IRegionManager>();
2023
regionManager.RegisterViewWithRegion("MainRegion", typeof(Views.WelcomeComponent));
2124
}
2225

source/Diol/src/Diol.Wpf.Core/ViewModels/MainComponentViewModel.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,23 @@ public class MainComponentViewModel : BindableBase
1818
{
1919
private IProcessProvider dotnetService;
2020
private IEventAggregator eventAggregator;
21-
private IApplicationStateService applicationStateService;
2221
private DiolExecutor diolExecutor;
2322

2423
/// <summary>
2524
/// Initializes a new instance of the <see cref="MainComponentViewModel"/> class.
2625
/// </summary>
2726
/// <param name="dotnetService">The dotnet service.</param>
2827
/// <param name="eventAggregator">The event aggregator.</param>
29-
/// <param name="applicationStateService">The application state service.</param>
3028
/// <param name="diolExecutor">The Diol executor.</param>
3129
public MainComponentViewModel(
3230
IProcessProvider dotnetService,
3331
IEventAggregator eventAggregator,
34-
IApplicationStateService applicationStateService,
3532
DiolExecutor diolExecutor)
3633
{
3734
this.diolExecutor = diolExecutor;
3835
this.dotnetService = dotnetService;
3936

4037
this.eventAggregator = eventAggregator;
41-
this.applicationStateService = applicationStateService;
4238

4339
this.eventAggregator
4440
.GetEvent<DebugModeRunnedEvent>()
@@ -52,8 +48,6 @@ public MainComponentViewModel(
5248
.GetEvent<ProcessFinished>()
5349
.Subscribe(ProcessFinishedEventHandler, ThreadOption.UIThread);
5450

55-
this.applicationStateService.Subscribe();
56-
5751
CanProcess(true);
5852

5953
this.DebugMenuItemVisibility = Visibility.Hidden;

source/Diol/src/applications/DiolVSIX/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="DiolVSIX.66bbb016-3110-40f6-a936-35f914a663e3" Version="1.7" Language="en-US" Publisher="Diol devs" />
4+
<Identity Id="DiolVSIX.66bbb016-3110-40f6-a936-35f914a663e3" Version="1.8" Language="en-US" Publisher="Diol devs" />
55
<DisplayName>Diol</DisplayName>
66
<Description xml:space="preserve">Dotnet Input-Output Logger (Diol) is a free and open-source tool you can easily see and explore logs during debugging your dotnet application in real time.</Description>
77
<MoreInfo>https://github.com/Dotnet-IO-logger/core/wiki</MoreInfo>

0 commit comments

Comments
 (0)