Skip to content

Commit

Permalink
Merge pull request #53 from davkean/Rename
Browse files Browse the repository at this point in the history
Rename Startup -> Run
  • Loading branch information
davkean committed Nov 12, 2021
2 parents 0ea10fb + 1342287 commit 06c20ca
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/AudioSwitcher/ApplicationModel/AudioSwitcherApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private void RunStartupServices()
{
foreach (Lazy<IStartupService, IPriorityMetadata> service in _startupServices)
{
if (!service.Value.Startup())
if (!service.Value.Run())
{
Shutdown();
break;
Expand Down
2 changes: 1 addition & 1 deletion src/AudioSwitcher/ApplicationModel/IStartupService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ internal interface IStartupService
/// <returns>
/// <see langword="true"/> if the application can start; otherwise, <see langword="false"/>.
/// </returns>
bool Startup();
bool Run();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public NotificationIconStartupService(PresenterHost presenterHost)
_presenterHost = presenterHost;
}

public bool Startup()
public bool Run()
{
_presenterHost.Show(PresenterId.NotificationIcon);
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/AudioSwitcher/ApplicationModel/SaveSettingsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public SaveSettingsService()
{
}

public bool Startup()
public bool Run()
{
Settings.Default.PropertyChanged += OnSettingsPropertyChanged;
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public SingleInstanceStartupService(IApplication application)
_mutex = new Mutex(true, mutexName, out _isFirstInstance);
}

public bool Startup()
public bool Run()
{
return _isFirstInstance;
}
Expand Down
2 changes: 1 addition & 1 deletion src/AudioSwitcher/Audio/InputSwitcherService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public InputSwitcherService(AudioDeviceManager manager)
_manager = manager;
}

public bool Startup()
public bool Run()
{
_manager.DeviceStateChanged += OnDeviceStateChanged;
return true;
Expand Down

0 comments on commit 06c20ca

Please sign in to comment.