{"id":20923903,"url":"https://github.com/logofx/samples.bootstrapping","last_synced_at":"2026-04-30T05:36:32.364Z","repository":{"id":77045715,"uuid":"54898769","full_name":"LogoFX/Samples.Bootstrapping","owner":"LogoFX","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-27T08:31:28.000Z","size":125,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-30T12:39:24.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LogoFX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-28T14:38:29.000Z","updated_at":"2020-04-27T08:31:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d589055-5335-4ece-bae5-b006183a0ea9","html_url":"https://github.com/LogoFX/Samples.Bootstrapping","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LogoFX/Samples.Bootstrapping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogoFX%2FSamples.Bootstrapping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogoFX%2FSamples.Bootstrapping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogoFX%2FSamples.Bootstrapping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogoFX%2FSamples.Bootstrapping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LogoFX","download_url":"https://codeload.github.com/LogoFX/Samples.Bootstrapping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LogoFX%2FSamples.Bootstrapping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32456167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T20:18:23.318Z","updated_at":"2026-04-30T05:36:27.354Z","avatar_url":"https://github.com/LogoFX.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Samples.Bootstrapping\n\n\u003cimg src=https://ci.appveyor.com/api/projects/status/github/logofx/Samples.Bootstrapping\u003e\n\nThis sample demonstrates how to start using LogoFX framework and setup application bootstrapper.\n\n---\n\n## WPF \u0026 ExtendedSimpleContainerAdapter\n\n### Steps to create\n\n- Create new WPF project\n- Remove MainWindow.xaml/MainWindow.xaml.cs\n- In App.xaml remove `StartupUri` element.\n\n```\n\u003cApplication x:Class=\"LogoFX.Samples.Client.Bootstrapping.App\"\n             xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" /\u003e\n```\n- Add folders Views and ViewModels. Add new class `ShellViewModel` to ViewModels folder and new WPF Window `ShellView` to Views.\n- Add new class `AppBootstrapper` to root of project.\n\n```\n    public class AppBootstrapper : BootstrapperContainerBase\u003cExtendedSimpleContainerAdapter\u003e.WithRootObject\u003cShellViewModel\u003e\n    {\n        public AppBootstrapper()\n            : base(new ExtendedSimpleContainerAdapter())\n        {\n\n        }\n\n        public override CompositionOptions CompositionOptions =\u003e new CompositionOptions\n        {\n            Prefixes = new[] {\"LogoFX.Samples.Client.Bootstrapping\"}\n        };\n    }\n```\n\n- In `App` constructor create new instance of `AppBootstrapper` and invoke `Initialize()` method..\n \n```\n        public App()\n        {\n            var appBootstrapper = new AppBootstrapper();\n            ((IInitializable)appBootstrapper).Initialize();\n        }\n```\n### Creation Options\n\nThe `BootstrapperContainerBase` constructor accepts Creation Options.\n\nThe `BootstrapperCreationOptions` class represents various settings for bootstrapper creation. Description of the properties of this class follows bellow.\n\n- `UseApplication` - a value indicating whether the real application is used. Default value is `true`. Use `false` for tests.\n- `ReuseCompositionInformation` - a value indicating whether the composition information is re-used. Use `true` when running lots of integration client-side tests. The default value is `true`.\n- `DiscoverCompositionModules` - a value indicating whether the bootstrapper should look for instances of `Solid.Practices.Modularity.ICompositionModule`. The default value is `true`.\n- `InspectAssemblies` - a value indicating whether the bootstrapper should look for potential application-component assemblies. The default value is `true`.\n- `UseDefaultMiddlewares` - a value indicating whether the default middlewares are used. The default value is `true`.\n- `DisplayRootView` - a value indicating whether the root view is displayed upon successful initialization. The default value is `true`.\n\nUsage:\n\n```\n        public AppBootstrapper()\n            : base(new ExtendedSimpleContainerAdapter(),\n                  new BootstrapperCreationOptions\n                  {\n                      DiscoverCompositionModules = true,\n                      InspectAssemblies = true,\n                      ReuseCompositionInformation = true,\n                      UseApplication = true,\n                      UseDefaultMiddlewares = true,\n                      DisplayRootView = true\n                  })\n        {\n        }\n```\n\n# Templating\n\n## Create template\n\n```\ndotnet new -i \u003cpath-to-project\u003e\n```\n\nThis command will create new template with name `logofx-client-bootstrapping` (in `template.json`) from the project where `\u003cpath-to-project\u003e` is full or relative path to project folder.\n  \n## Create project from this template\n\n```\ndotnet new logofx-client-bootstrapping\n```\n\nThe project will be created in current folder with name of this folder. For set custom project name use `-n` switch.\n\n```\ndotnet new logofx-client-bootstrapping -n \u003cnew-project-name\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogofx%2Fsamples.bootstrapping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogofx%2Fsamples.bootstrapping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogofx%2Fsamples.bootstrapping/lists"}