Understanding the EndpointInitialization changes in 2.6.1

@Adam.

Isn’t it correctly understood, that any Functions, modules etc. that you have placed in your Dashboard.ps1, is available throughout the entire site? Or have I misunderstood that part?

Yep. If you look here, this is how it’s being accomplished: https://github.com/ironmansoftware/universal-dashboard/blob/master/src/UniversalDashboard/Services/UDRunspaceFactory.cs#L79

And then that method is being used here: https://github.com/ironmansoftware/universal-dashboard/blob/master/src/UniversalDashboard/Cmdlets/NewDashboardCommand.cs#L81

Are you having issues? I’m currently using this functionality primarily for loading modules in my own dashboards. I do have tests that validate this for functions and variables here: https://github.com/ironmansoftware/universal-dashboard/blob/master/src/UniversalDashboard.UITest/Integration/EndpointInitialization.Tests.ps1#L12

Well, apparently it doesn’t take into account if your forget to rename the function on all your pages.

Doh! :see_no_evil:

Thanks