Пример #1
0
		public IApplicationInfo[] GetApplications ()
		{
			ExtensionNodeList nodes = AddinManager.GetExtensionNodes ("/MonoDevelop/Core/Applications");
			IApplicationInfo[] apps = new IApplicationInfo [nodes.Count];
			for (int n=0; n<nodes.Count; n++)
				apps [n] = (ApplicationExtensionNode) nodes [n];
			return apps;
		}
Пример #2
0
        public ShellViewModel(IApplicationInfo appInfo, DocumentEditorViewModel documentEditor)
        {
            Ensure.ArgumentNotNull(appInfo, "appInfo");
            Ensure.ArgumentNotNull(documentEditor, "documentEditor");

            _appInfo = appInfo;

            DisplayName = _appInfo.Name;
            _editor = documentEditor;
        }
Пример #3
0
        public LinkBase( IApplicationInfo appInfo, 
                         ILinkInfo linkInfo, 
                         PathVariablesDTO pathVariablesDTO )
        {
            this._linkInfo = linkInfo;
            this._pathVariablesDTO = pathVariablesDTO;
            this._symLinkHelper = new SymbolicLinkHelper();

            Initialize( appInfo );
        }
Пример #4
0
   public BuildContextWrapper(IList<BuildMessage> buildMessages, ISettingsInfo applicationSettings, IApplicationInfo applicationInfo,
 string projectFileName, Action buildIsFinished, string sourceStoreDirectory, bool onlyCheck)
   {
       this.buildMessages = buildMessages;
         this.ApplicationSettings = applicationSettings;
         this.ApplicationInfo = applicationInfo;
         this.ProjectFileName = projectFileName;
         this.BuildIsFinished = buildIsFinished;
         this.SourceStoreDirectory = sourceStoreDirectory;
         this.OnlyCheck = onlyCheck;
   }
Пример #5
0
 public NVelocityHtmlRenderHelper(
     IHttpContext httpContext,
     XhtmlTextWriter writer,
     IApplicationInfo applicationInfo,
     IFileCache fileCache)
 {
     this.httpContext = httpContext;
     this.fileCache = fileCache;
     this.applicationInfo = applicationInfo;
     this.writer = writer;
 }
 public ILink Get( IApplicationInfo appInfo, 
                   ILinkInfo linkInfo, 
                   PathVariablesDTO pathVariablesDTO )
 {
     var linkParamsDTO = new LinkParametersDTO
     {
         ApplicationInfo = appInfo,
         LinkInfo = linkInfo,
         PathVariablesDTO = pathVariablesDTO
     };
     return this.Get( linkParamsDTO );
 }
 public IOsConfiguration Get( IApplicationInfo appInfo, 
                              IOsConfigurationInfo osConfigInfo, 
                              PathVariablesDTO pathVariables )
 {
     var parameters = new OsConfigurationParametersDTO
     {
         ApplicationInfo = appInfo,
         OsConfigurationInfo = osConfigInfo,
         PathVariablesDTO = pathVariables
     };
     return this.Get( parameters );
 }
Пример #8
0
        public AboutViewModel(IApplicationSettings applicationSettings, IApplicationInfo applicationInfo)
        {
            ApplicationSettings = applicationSettings;
            ApplicationInfo = applicationInfo;
            AboutTabLabel = UILabels.AboutPage_TabAbout;
            VersionLabel = String.Format(UILabels.AboutPage_VersionTitle, ApplicationInfo.GetAppVersion());
            DescriptionLabel = UILabels.AboutPage_Description;
            WriteEmailTextLabel = UILabels.AboutPage_HaveSuggestion;
            RateAppTextLabel = UILabels.AboutPage_RateTheAppText;
            RateAppBtnLabel = UILabels.AboutPage_RateTheAppBtn;
            WriteEmailBtnLabel = UILabels.AboutPage_ConnectWithAuthorBtn;

            // messages
            DontMakeBadVoteTitleLabel = Messages.AboutPage_InfoHeader;
            DontMakeBadVoteTextLabel = Messages.AboutPage_DontVoteBadlyText;
            ThankYouVoteLabel = Messages.AboutPage_ThankYouVote;

            AboutLogo = Constants.IS_LIGHT_VERSION ? Images.TransparentLogoLite : Images.TransparentLogo;
        }
Пример #9
0
        public static IUnityContainer CreateContainer(IApplicationInfo appInfo)
        {
            var regClient = new RegistryServiceClient(appInfo);
            var hostName = regClient.GetResourceLocation(RegistryResourceType.ServiceHost, "rabbitmq", 1);

            var factory = new ConnectionFactory
            {
                UserName = "******",
                Password = "******",
                VirtualHost = "/",
                HostName = hostName,
                AutomaticRecoveryEnabled = true,
                NetworkRecoveryInterval = TimeSpan.FromSeconds(5),
                RequestedHeartbeat = 5,
            };

            return new UnityContainer()
                        .RegisterInstance<IConnectionFactory>(factory)
                        .RegisterType<IConnection, RabbitMqConnection>(new ContainerControlledLifetimeManager())
                        .RegisterType<IModel, RabbitMqModel>(new HierarchicalLifetimeManager());
        }
Пример #10
0
        public static DisposableHttpClient CreateClientWithTagging(this StubHttpApi api, ISessionIdAccessor sessionIdAccessor, ICorrelationIdAccessor correlationIdAccessor, IOutboundRequestIdAccessor outboundRequestIdAccessor, IGenerateGuids guidGenerator, IApplicationInfo applicationInfo, int timeoutMs = 3000)
        {
            var configuration = new InstrumentingConfiguration {
                Uri = api.BaseUri, TimeoutMs = timeoutMs
            };
            var httpClient = new DefaultHttpClient(configuration);

            return(new DisposableHttpClient(httpClient, httpClient.AddTagging(sessionIdAccessor, correlationIdAccessor, outboundRequestIdAccessor, guidGenerator, applicationInfo)));
        }
Пример #11
0
 private void InitializeUsingParameters( DefinitionParametersDTO parametersDTO )
 {
     this._applicationInfo = parametersDTO.ApplicationInfo;
     this._pathVariablesDTO = parametersDTO.PathVariablesDTO;
 }
Пример #12
0
        public EntityFrameworkServices(
            ILibraryManager libraryManager,
            ILibraryExporter libraryExporter,
            IApplicationInfo applicationInfo,
            ICodeGenAssemblyLoadContext loader,
            IModelTypesLocator modelTypesLocator,
            IDbContextEditorServices dbContextEditorServices,
            IPackageInstaller packageInstaller,
            IServiceProvider serviceProvider,
            Workspace workspace,
            ILogger logger)
        {
            if (libraryManager == null)
            {
                throw new ArgumentNullException(nameof(libraryManager));
            }

            if (libraryExporter == null)
            {
                throw new ArgumentNullException(nameof(libraryExporter));
            }

            if (applicationInfo == null)
            {
                throw new ArgumentNullException(nameof(applicationInfo));
            }

            if (loader == null)
            {
                throw new ArgumentNullException(nameof(loader));
            }

            if (modelTypesLocator == null)
            {
                throw new ArgumentNullException(nameof(modelTypesLocator));
            }

            if (dbContextEditorServices == null)
            {
                throw new ArgumentNullException(nameof(dbContextEditorServices));
            }

            if (packageInstaller == null)
            {
                throw new ArgumentNullException(nameof(packageInstaller));
            }

            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            _libraryManager          = libraryManager;
            _libraryExporter         = libraryExporter;
            _applicationInfo         = applicationInfo;
            _loader                  = loader;
            _modelTypesLocator       = modelTypesLocator;
            _dbContextEditorServices = dbContextEditorServices;
            _packageInstaller        = packageInstaller;
            _serviceProvider         = serviceProvider;
            _logger                  = logger;
            _workspace               = workspace;
        }
Пример #13
0
 public TestException(IApplicationInfo applicationInfo)
     : base(applicationInfo)
 {
 }
Пример #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationStatusInfo"/> class.
 /// </summary>
 /// <param name="applicationInfo">The application info.</param>
 /// <remarks>
 /// This constructor is designed to be used with Dependency Injection.
 /// </remarks>
 public ApplicationStatusInfo(IApplicationInfo applicationInfo)
 {
     this.applicationInfo = applicationInfo;
 }
Пример #15
0
 public GameLogic( IApplicationInfo appInfo )
 {
     this._appInfo = appInfo;
 }
Пример #16
0
 public ModulesCatalog(IModulesDirectory modulesDirectory, IApplicationInfo applicationInfo, IPackageLoader packageLoader)
 {
     _modulesDirectory = modulesDirectory;
     _applicationInfo  = applicationInfo;
     _packageLoader    = packageLoader;
 }
Пример #17
0
        /// <summary>   Shows help. </summary>
        ///
        /// <remarks>   trond, 2013-05-01. </remarks>
        ///
        /// <param name="commandRules">         The command rules. </param>
        /// <param name="helpForCommandRule">   The help for command rule. </param>
        /// <param name="applicationInfo">      Information describing the application. </param>
        public void ShowHelp(List <CommandRule> commandRules, CommandRule helpForCommandRule,
                             IApplicationInfo applicationInfo)
        {
            var messenger = _messengerFactory.Invoke();

            messenger.WriteLine("{0} {1} - {2}", applicationInfo.Name, applicationInfo.Version,
                                applicationInfo.Description);
            messenger.WriteLine("{0}", applicationInfo.Copyright);
            if (!string.IsNullOrEmpty(applicationInfo.Authors))
            {
                if (applicationInfo.Authors.Contains(","))
                {
                    messenger.WriteLine("Authors: {0}", applicationInfo.Authors);
                }
                else
                {
                    messenger.WriteLine("Author: {0}", applicationInfo.Authors);
                }
            }
            messenger.WriteLine("Usage: {0} <command> [parameters]", applicationInfo.ExeFileName);
            messenger.WriteLine(string.Empty);
            _commandColumnWidth = CalculateCommandColumnWitdth(commandRules);
            if (helpForCommandRule != null)
            {
                ShowCommandRuleHelp(helpForCommandRule, true, applicationInfo);
            }
            else
            {
                messenger.WriteLine("Commands:");
                messenger.WriteLine("---------");

                ShowCommandRuleHelp(
                    new CommandRule {
                    Command = new Command {
                        Description = "Display this help text", Name = "Help"
                    }
                },
                    false, applicationInfo);
                ShowCommandRuleHelp(
                    new CommandRule {
                    Command = new Command {
                        Description = "Display license", Name = "License"
                    }
                }, false,
                    applicationInfo);
                ShowCommandRuleHelp(
                    new CommandRule {
                    Command = new Command {
                        Description = "Display credits", Name = "Credits"
                    }
                }, false,
                    applicationInfo);

                foreach (CommandRule commandRule in commandRules)
                {
                    ShowCommandRuleHelp(commandRule, false, applicationInfo);
                }
                messenger.WriteLine(string.Empty);
                messenger.WriteLine("Commands and parameters:");
                messenger.WriteLine("------------------------");
                foreach (CommandRule commandRule in commandRules)
                {
                    ShowCommandRuleHelp(commandRule, true, applicationInfo);
                }
                //_messenger.WriteLine();
            }
            messenger.Show();
        }
 public ProgramInfoViewModel( IApplicationInfo applicationInfo )
 {
     this.ApplicationInfo = applicationInfo;
 }
Пример #19
0
 public TfsStoreWithException(IApplicationInfo applicationInfo)
     : base(applicationInfo)
 {
 }
Пример #20
0
 public void Build(ISettingsInfo settingsInfo, IApplicationInfo applicationInfo, bool onlyCheck)
 {
     Model.Build(settingsInfo, applicationInfo, onlyCheck);
 }
 public ApplicationInfoUI(IApplicationInfo applicationInfo)
 {
     this.applicationInfo = applicationInfo;
 }
Пример #22
0
        public ShellViewModel(IMainViewModel mainViewModel, ITabConductorViewModel tabConductorViewModel, IApplicationInfo applicationInfo)
        {
            DisplayName = applicationInfo.LaunchedAsAdministrator ? "Fidl (Administrator)" : "Fidl";

            MainViewModel = mainViewModel;

            SwitchTabCommand = new RelayCommand <object>(parameter => tabConductorViewModel.SwitchTab());
        }
Пример #23
0
 public FileLink( IApplicationInfo appInfo, 
                  IFileLinkInfo fileLinkInfo, 
                  PathVariablesDTO pathVariablesDTO )
     : base(appInfo, fileLinkInfo, pathVariablesDTO)
 {
 }
        public void testDefinition_ImplementsIDefinition()
        {
            var appInfo = Mock.Create<IApplicationInfo>();
            Mock.Arrange( () => appInfo.DefinitionInfo.OsConfigs )
                .Returns( () => new List<IOsConfigurationInfo>() );
            this._appInfo = appInfo;

            this.InitializeTarget();

            Assert.IsInstanceOfType( this._target, typeof( IDefinition ) );
        }
        public void RegisterException(ExceptionEntity exceptionEntity, IApplicationInfo applicationInfo)
        {
            var workItem = CreateNewException(exceptionEntity, applicationInfo);

            SendException(workItem.Json, "Bug");
        }
        public void testDefinition_IsLinked_NoConfig()
        {
            var appInfo = Mock.Create<IApplicationInfo>();
            Mock.Arrange( () => appInfo.DefinitionInfo.OsConfigs )
                .Returns( new List<IOsConfigurationInfo>() );
            this._appInfo = appInfo;
            this.InitializeTarget();

            var isLinked = this._target.IsLinked;

            Assert.IsFalse( isLinked );
        }
Пример #27
0
        /// <summary>   Shows the command rule help. </summary>
        ///
        /// <remarks>   trond, 2013-05-01. </remarks>
        ///
        /// <param name="commandRule">          The command rule. </param>
        /// <param name="includeParameters">    true to include, false to exclude the parameters. </param>
        /// <param name="applicationInfo">      Information describing the application. </param>
        private void ShowCommandRuleHelp(CommandRule commandRule, bool includeParameters, IApplicationInfo applicationInfo)
        {
            IValueConverter valueConverter           = new ValueConverter();
            StringBuilder   helpString               = new StringBuilder();
            StringBuilder   exampleString            = new StringBuilder();
            StringBuilder   alternativeExampleString = new StringBuilder();

            helpString.Append(FormatCommand(commandRule.Command.Name));
            if (!includeParameters)
            {
                helpString.Append(FormatCommandDescription(commandRule.Command.Summary, _commandColumnWidth, MaxWidth - _commandColumnWidth));
            }
            if (includeParameters)
            {
                helpString.Append(FormatCommandDescription(commandRule.Command.Description, _commandColumnWidth, MaxWidth - _commandColumnWidth));
                if (Type.GetType("Mono.Runtime") != null)
                {
                    exampleString.Append("mono ");
                }
                exampleString.Append(applicationInfo.ExeFileName + " ");
                exampleString.Append(commandRule.Command.Name + " ");
                alternativeExampleString.Append(exampleString);
                foreach (RequiredCommandParameter requiredCommandParameter in commandRule.Command.RequiredParameters)
                {
                    helpString.Append(FormatCommandParameter("/" + requiredCommandParameter.Name));
                    helpString.Append(FormatCommandDescription(string.Format("[Required] {0}  Alternative parameter name: /{1}", requiredCommandParameter.Description, requiredCommandParameter.AlternativeName), _commandColumnWidth, MaxWidth - _commandColumnWidth));
                    exampleString.Append(string.Format("/{0}=\"{1}\" ", requiredCommandParameter.Name, valueConverter.ObjectValue2String(requiredCommandParameter.ExampleValue)));
                    if (!string.IsNullOrEmpty(requiredCommandParameter.AlternativeName))
                    {
                        alternativeExampleString.Append(string.Format("/{0}=\"{1}\" ", requiredCommandParameter.AlternativeName, valueConverter.ObjectValue2String(requiredCommandParameter.ExampleValue)));
                    }
                    else
                    {
                        alternativeExampleString.Append(string.Format("/{0}=\"{1}\" ", requiredCommandParameter.Name, valueConverter.ObjectValue2String(requiredCommandParameter.ExampleValue)));
                    }
                }
                foreach (OptionalCommandParameter optionalCommandParameter in commandRule.Command.OptionalParameters)
                {
                    helpString.Append(FormatCommandParameter("/" + optionalCommandParameter.Name));
                    helpString.Append(
                        FormatCommandDescription(
                            string.Format("[Optional] {0}  Alternative parameter name: /{1}. Default value: {2} ",
                                          optionalCommandParameter.Description, optionalCommandParameter.AlternativeName, valueConverter.ObjectValue2String(optionalCommandParameter.DefaultValue)), _commandColumnWidth,
                            MaxWidth - _commandColumnWidth));
                    exampleString.Append(string.Format("/{0}=\"{1}\" ", optionalCommandParameter.Name, valueConverter.ObjectValue2String(optionalCommandParameter.ExampleValue)));
                    if (!string.IsNullOrEmpty(optionalCommandParameter.AlternativeName))
                    {
                        alternativeExampleString.Append(string.Format("/{0}=\"{1}\" ",
                                                                      optionalCommandParameter.AlternativeName, valueConverter.ObjectValue2String(optionalCommandParameter.ExampleValue)));
                    }
                    else
                    {
                        alternativeExampleString.Append(string.Format("/{0}=\"{1}\" ", optionalCommandParameter.Name, valueConverter.ObjectValue2String(optionalCommandParameter.ExampleValue)));
                    }
                }
                helpString.Append(Environment.NewLine);
                helpString.Append("".PadLeft(3) + "Example: " + exampleString + Environment.NewLine);
                helpString.Append("".PadLeft(3) + "Example (alternative): " + alternativeExampleString +
                                  Environment.NewLine);
                helpString.Append(Environment.NewLine);
                helpString.Append(Environment.NewLine);
            }
            var messenger = _messengerFactory.Invoke();

            messenger.Write(helpString.ToString());
        }
Пример #28
0
        public EntityFrameworkServices(
            IProjectContext projectContext,
            IApplicationInfo applicationInfo,
            ICodeGenAssemblyLoadContext loader,
            IModelTypesLocator modelTypesLocator,
            IDbContextEditorServices dbContextEditorServices,
            IPackageInstaller packageInstaller,
            IServiceProvider serviceProvider,
            Workspace workspace,
            IFileSystem fileSystem,
            ILogger logger)
        {
            if (projectContext == null)
            {
                throw new ArgumentNullException(nameof(projectContext));
            }

            if (applicationInfo == null)
            {
                throw new ArgumentNullException(nameof(applicationInfo));
            }

            if (loader == null)
            {
                throw new ArgumentNullException(nameof(loader));
            }

            if (modelTypesLocator == null)
            {
                throw new ArgumentNullException(nameof(modelTypesLocator));
            }

            if (dbContextEditorServices == null)
            {
                throw new ArgumentNullException(nameof(dbContextEditorServices));
            }

            if (packageInstaller == null)
            {
                throw new ArgumentNullException(nameof(packageInstaller));
            }

            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            if (fileSystem == null)
            {
                throw new ArgumentNullException(nameof(fileSystem));
            }

            _projectContext          = projectContext;
            _applicationInfo         = applicationInfo;
            _loader                  = loader;
            _modelTypesLocator       = modelTypesLocator;
            _dbContextEditorServices = dbContextEditorServices;
            _packageInstaller        = packageInstaller;
            _serviceProvider         = serviceProvider;
            _logger                  = logger;
            _workspace               = workspace;
            _fileSystem              = fileSystem;
        }
Пример #29
0
 public FolderLink( IApplicationInfo appInfo, 
                    IFolderLinkInfo folderLinkInfo, 
                    PathVariablesDTO pathVariablesDTO )
     : base(appInfo, folderLinkInfo, pathVariablesDTO)
 {
 }
Пример #30
0
        public static bool MySqlExceptionConnectionTimeoutHandler(Exception exception, IApplicationInfo application, UserBase user, IInteractiveMessage interactiveMessage)
        {
            var mysqlEx    = ExceptionHelper.FindExceptionTypeInInner <MySqlException>(exception);
            var exceptions = new[] { 1159, 1161 };

            if (mysqlEx != null && exceptions.Contains(mysqlEx.Number))
            {
                interactiveMessage.ShowMessage(ImportanceLevel.Error, "Возникла проблема с подключением к серверу, попробуйте снова.");
                return(true);
            }
            return(false);
        }
Пример #31
0
 private void Initialize( IApplicationInfo programInfo )
 {
     if ( programInfo is IToolInfo )
     {
         this._programLogic = new ToolLogic( programInfo );
     }
     else
     {
         this._programLogic = new GameLogic( programInfo );
     }
 }
Пример #32
0
 public AboutViewModel(IApplicationInfo applicationInfo, IProductService productService = null)
 {
     ApplicationInfo     = applicationInfo ?? throw new ArgumentNullException(nameof(applicationInfo));
     this.productService = productService;
 }
 private void ResetParameters()
 {
     this._target = null;
     this._appInfo = Mock.Create<IApplicationInfo>();
     this._osConfigFactoryMock = Mock.Create<IOsConfigurationFactory>( Behavior.Strict );
     this._osConfigInfos = new List<IOsConfigurationInfo>();
     this._osFilterMock = Mock.Create<IOsFilter>( Behavior.Strict );
 }
Пример #34
0
 public SQLDBUpdater(UpdateConfiguration configuration, INavigationManager navigation, IGuiDispatcher gui, BaseParameters.ParametersService parametersService, IApplicationInfo applicationInfo, DbConnection connection, MySqlConnectionStringBuilder connectionStringBuilder, IUserService userService, IUnitOfWorkFactory unitOfWorkFactory, IInteractiveMessage interactiveMessage)
 {
     this.configuration           = configuration ?? throw new ArgumentNullException(nameof(configuration));
     this.navigation              = navigation ?? throw new ArgumentNullException(nameof(navigation));
     this.gui                     = gui ?? throw new ArgumentNullException(nameof(gui));
     this.parametersService       = parametersService ?? throw new ArgumentNullException(nameof(parametersService));
     this.connection              = connection ?? throw new ArgumentNullException(nameof(connection));
     this.connectionStringBuilder = connectionStringBuilder ?? throw new ArgumentNullException(nameof(connectionStringBuilder));
     this.userService             = userService ?? throw new ArgumentNullException(nameof(userService));
     this.unitOfWorkFactory       = unitOfWorkFactory ?? throw new ArgumentNullException(nameof(unitOfWorkFactory));
     this.interactiveMessage      = interactiveMessage ?? throw new ArgumentNullException(nameof(interactiveMessage));
 }
Пример #35
0
 public ConnectionStringsWriter(IApplicationInfo applicationInfo)
     : this(applicationInfo, DefaultFileSystem.Instance)
 {
 }
Пример #36
0
 public ToolLogic( IApplicationInfo programInfo )
 {
     this._programInfo = programInfo;
 }
Пример #37
0
        public static bool NHibernateStaleObjectStateExceptionException(Exception exception, IApplicationInfo application, UserBase user, IInteractiveMessage interactiveMessage)
        {
            var staleObjectStateException = ExceptionHelper.FindExceptionTypeInInner <NHibernate.StaleObjectStateException>(exception);

            if (staleObjectStateException != null)
            {
                var type       = OrmConfig.FindMappingByFullClassName(staleObjectStateException.EntityName).MappedClass;
                var objectName = DomainHelper.GetSubjectNames(type);

                string message;

                switch (objectName.Gender)
                {
                case GrammaticalGender.Feminine:
                    message = "Сохраняемая <b>{0}</b> c номером <b>{1}</b> была кем то изменена.";
                    break;

                case GrammaticalGender.Neuter:
                    message = "Сохраняемое <b>{0}</b> c номером <b>{1}</b> было кем то изменено.";
                    break;

                case GrammaticalGender.Masculine:
                default:
                    message = "Сохраняемый <b>{0}</b> c номером <b>{1}</b> был кем то изменен.";
                    break;
                }
                message = String.Format(message + "\nВаши изменения не будут записаны, чтобы не потерять чужие изменения. \nПереоткройте вкладку.", objectName?.Nominative ?? type.Name, staleObjectStateException.Identifier);

                interactiveMessage.ShowMessage(QS.Dialog.ImportanceLevel.Warning, message);
                return(true);
            }
            return(false);
        }
Пример #38
0
 public void Build(ISettingsInfo settingsInfo, IApplicationInfo applicationInfo, bool onlyCheck)
 {
     IsBuilding = true;
       // Внимание!!! Делегат вызовется не из UI потока.
       BuildContextWrapper context = new BuildContextWrapper(BuildMessages, settingsInfo, applicationInfo, LoadedFileName,
     delegate { IsBuilding = false; }, fileStore.StoreDirectory, onlyCheck);
       MainItem.Build(context);
 }
Пример #39
0
        public IdentityGenerator(IApplicationInfo applicationInfo,
                                 IServiceProvider serviceProvider,
                                 ICodeGeneratorActionsService actionService,
                                 IProjectContext projectContext,
                                 IConnectionStringsWriter connectionStringsWriter,
                                 Workspace workspace,
                                 ICodeGenAssemblyLoadContext loader,
                                 IFileSystem fileSystem,
                                 ILogger logger)
        {
            if (applicationInfo == null)
            {
                throw new ArgumentNullException(nameof(applicationInfo));
            }

            if (serviceProvider == null)
            {
                throw new ArgumentNullException(nameof(serviceProvider));
            }

            if (actionService == null)
            {
                throw new ArgumentNullException(nameof(actionService));
            }

            if (projectContext == null)
            {
                throw new ArgumentNullException(nameof(projectContext));
            }

            if (connectionStringsWriter == null)
            {
                throw new ArgumentNullException(nameof(connectionStringsWriter));
            }

            if (workspace == null)
            {
                throw new ArgumentNullException(nameof(workspace));
            }

            if (loader == null)
            {
                throw new ArgumentNullException(nameof(loader));
            }

            if (fileSystem == null)
            {
                throw new ArgumentNullException(nameof(fileSystem));
            }

            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            _applicationInfo            = applicationInfo;
            _serviceProvider            = serviceProvider;
            _codegeneratorActionService = actionService;
            _projectContext             = projectContext;
            _connectionStringsWriter    = connectionStringsWriter;
            _workspace  = workspace;
            _loader     = loader;
            _fileSystem = fileSystem;
            _logger     = logger;
        }
Пример #40
0
 public StartViewModel(IApplicationInfo applicationInfo) : base("Logo", "Welcome to Fidl!")
 {
     ApplicationInfo = applicationInfo;
 }
 public ApplicationInfoModel(IApplicationInfo appInfo)
 {
     Name        = appInfo.Name;
     Version     = appInfo.Version;
     Environment = appInfo.Environment;
 }
 protected AccessToVsts(IApplicationInfo applicationInfo)
 {
     this.ApplicationInfo = applicationInfo;
 }
Пример #43
0
 public SerialNumberEncoder(IApplicationInfo applicationInfo)
 {
     this.forProduct      = applicationInfo?.ProductName;
     this.applicationInfo = applicationInfo;
 }
 public TFSStoreWithBug(IApplicationInfo applicationInfo)
     : base(applicationInfo)
 {
 }