Created
December 29, 2016 22:31
-
-
Save rionmonster/233f47fda7d9cd298b48650f768a9bad to your computer and use it in GitHub Desktop.
Is this sufficient enough to load contents for MEF Components?
This file contains 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
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] | |
[ProvideAutoLoad(UIContextGuids80.SolutionExists, PackageAutoLoadFlags.BackgroundLoad)] | |
public sealed class ExamplePackage : Package | |
{ | |
protected override async task Initialize() | |
{ | |
// Load necessary stuff for MEF Component here | |
base.Initialize(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment