示例#1
0
 public DefaultRuntimeConfig()
 {
     ArtifactStore = new LocalUserStore(new DefaultStoreConfig());
     Commands      = new List <ICommand> {
         new InitDbCommand(), new StartServerCommand()
     };
 }
示例#2
0
        public void Should_check_for_distribution()
        {
            var localUserStore = new LocalUserStore(new DefaultStoreConfig());
            var distribution   = new Distribution.Distribution(new Version("9.4.15"), OSPlatform.Windows, Architecture.X86);

            var result = localUserStore.GetDistributionPackage(distribution);

            result.Should().NotBeNull();
        }
示例#3
0
        protected override async Task ApplyProfile(ProfileBase profile)
        {
            if (profile is LocalProfile localProfile)
            {
                var subscriber         = new LocalSubscriber();
                var snippetStore       = new LocalSnippetStore(localProfile.FolderName, subscriber);
                var csScriptRunService = new CsScriptRunService(_clipboardService);
                var pyScriptRunService = new PyScriptRunService(_clipboardService);
                SnippetService = new SnippetService(snippetStore, _messenger, csScriptRunService, pyScriptRunService, _dispatcher, subscriber, "Me");
                var userStore = new LocalUserStore(localProfile.FolderName, subscriber);
                UserService = new UserService(userStore, _messenger, _dispatcher, subscriber);

                await subscriber.StartAsync();

                Subscriber = subscriber;
            }
        }