Skip to content

Commit

Permalink
Merge pull request #416 from PHOENIXCONTACT/port/al-pr-224-to-release/6
Browse files Browse the repository at this point in the history
Port AbstractionLayer PR 224 to release 6
  • Loading branch information
1nf0rmagician authored May 8, 2024
2 parents b506497 + 4cbf1b0 commit 5a5eda7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ protected override void OnInitialize()
/// </summary>
protected override void OnStart()
{
ActivateFacade(_notificationSourceFacade);

// Start type controller for resource and proxy creation
Container.Resolve<IResourceTypeController>().Start();

Expand All @@ -80,7 +82,6 @@ protected override void OnStart()

// Activate external facade to register events
ActivateFacade(_resourceTypeTreeFacade);
ActivateFacade(_notificationSourceFacade);
ActivateFacade(_resourceManagementFacade);

}
Expand All @@ -91,11 +92,12 @@ protected override void OnStart()
protected override void OnStop()
{
// Tear down facades
DeactivateFacade(_notificationSourceFacade);
DeactivateFacade(_resourceManagementFacade);
DeactivateFacade(_resourceTypeTreeFacade);
var resourceManager = Container.Resolve<IResourceManager>();
resourceManager.Stop();

DeactivateFacade(_notificationSourceFacade);
}

private readonly ResourceManagementFacade _resourceManagementFacade = new ResourceManagementFacade();
Expand Down

0 comments on commit 5a5eda7

Please sign in to comment.