Created
July 14, 2024 09:13
-
-
Save hishaamn/29b905a24d4dfcb28d154a44cef211e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IProcessingContext installationContext = InstallerManager.CreateInstallationContext(this._skipFile); | |
public static IProcessingContext CreateInstallationContext(bool skipFile = false) => (IProcessingContext)new ExtSimpleProcessingContext(skipFile); | |
public void InstallPackage(string path, bool registerInstallation, ISource<PackageEntry> source, IProcessingContext context) | |
{ | |
//..omit for brevity | |
using (new PackageInstallationContext()) | |
{ | |
using (ConfigWatcher.PostponeEvents()) | |
{ | |
ISink<PackageEntry> installerSink = CreateInstallerSink(context); | |
if(context is ExtSimpleProcessingContext extSimpleProcessingContext) | |
{ | |
new CustomEntrySorter(source, extSimpleProcessingContext.SkipFile).Populate(installerSink); | |
} | |
else | |
{ | |
new CustomEntrySorter(source).Populate(installerSink); | |
} | |
//..omit for brevity | |
} | |
} | |
//..omit for brevity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment