Skip to content

Commit

Permalink
Disable net traffic (#14083)
Browse files Browse the repository at this point in the history
* disable net traffic example

* Update PackageManagerViewExtension.cs

* update

* Update DynamoModel.cs

* Update PackageManagerViewExtension.cs

* Update PackageManagerViewExtension.cs

---------

Co-authored-by: pinzart <[email protected]>
  • Loading branch information
pinzart90 and pinzart authored Jun 16, 2023
1 parent 3183671 commit 405e8bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/DynamoApplications/StartupUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,10 @@ private static DynamoModel StartDynamoWithDefaultConfig(bool CLImode,
HostAnalyticsInfo = info,
CLIMode = CLImode
};
config.AuthProvider = CLImode ? null : new Core.IDSDKManager();

// ALIAS does needs a total network traffic blackout.
config.AuthProvider = null;

config.UpdateManager = CLImode ? null : InitializeUpdateManager();
config.StartInTestMode = CLImode;
config.PathResolver = CLImode ? new CLIPathResolver(preloaderLocation, userDataFolder, commonDataFolder) as IPathResolver : new SandboxPathResolver(preloaderLocation) as IPathResolver;
Expand Down
5 changes: 4 additions & 1 deletion src/DynamoPackagesWPF/PackageManagerViewExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ private void RequestLoadViewExtensionsForLoadedPackages(IEnumerable<Package> pac

private void RaisePackageHostNotifications(IEnumerable<Package> packages)
{
// ALIAS does needs a total network traffic blackout.
// Since there is no way to switch this on/off, we will just skip it for now.
/*
foreach (var pkg in packages)
{
//check that the package does not target another host, if it does raise a warning.
Expand All @@ -154,7 +157,7 @@ private void RaisePackageHostNotifications(IEnumerable<Package> packages)
Resources.TitlePackageTargetOtherHost));
}
}

*/
}

private void RequestLoadLayoutSpecs(IEnumerable<Package> packages)
Expand Down

0 comments on commit 405e8bc

Please sign in to comment.