public DebugTokenReplacer(IUnconfiguredProjectCommonServices unconfiguredServices, IEnvironmentHelper environmentHelper, IActiveDebugFrameworkServices activeDebugFrameworkService, IProjectAccessor projectAccessor) { UnconfiguredServices = unconfiguredServices; EnvironmentHelper = environmentHelper; ActiveDebugFrameworkService = activeDebugFrameworkService; ProjectAccessor = projectAccessor; }
public static string ToServiceName(IEntity entity, IEnvironmentHelper environment) { if (environment == null) { return(ToServiceName(entity.Name)); } return(ToServiceName(environment.ToTypeName(entity, true))); }
public static string ToDTOAdapterTypeName(IEntity entity, IEnvironmentHelper environment) { if (environment != null) { return(ToDTOAdapterTypeName(environment.ToTypeName(entity, true))); } return(ToDTOAdapterTypeName(entity.Name)); }
public RelativityAnalyticsIndexManager(IDBContext eddsDbContext, IEnvironmentHelper environment, int poolId) { _eddsDbContext = eddsDbContext; _environment = environment; Guid = "EE159966-D74C-49D5-8FE8-B6AD1CC8009C"; RespectsResourcePool = true; AgentAgentResourcePool = poolId; }
public static string ToServiceResponseCollectionName(IEntity entity, IEnvironmentHelper environment) { if (environment != null) { return(ToServiceResponseCollectionName(environment.ToTypeName(entity, true))); } return(ToServiceResponseCollectionName(entity.Name)); }
public static string ToDomainTypeName(IEntity entity, IEnvironmentHelper environment) { if (environment == null) { return(entity.Name); } return(environment.ToTypeName(entity.Type, true)); }
public virtual void WriteColumnDefinition(IAttribute attribute, IEnvironmentHelper environment) { Write("{0} {1}{2} {3}NULL", attribute.Persistence.Name, environment.ToTypeName(attribute, false), environment.ToDefaultValue(attribute).Length > 0 ? " DEFAULT " + environment.ToDefaultValue(attribute) : "", attribute.TypeDefinition.Required ? "NOT " : ""); }
public void WriteCreateUniqueConstraint(IUniqueId constraint, IEnvironmentHelper environment) { WriteLine("ALTER TABLE {0}", constraint.Entity.Persistence.FullName); Indent++; WriteLine("ADD CONSTRAINT {0} UNIQUE ({1})", constraint.Persistence.Name, constraint.Attributes.ToPersistentNamesString(",")); }
public virtual void WriteCreatePrimaryKey(IPrimaryId constraint, IEnvironmentHelper environment) { WriteLine("ALTER TABLE {0}", constraint.Entity.Persistence.FullName); Indent++; WriteLine("ADD CONSTRAINT {0} PRIMARY KEY ({1})", constraint.Persistence.Name, constraint.Attributes.ToPersistentNamesString(",")); }
public HelpersManager(IEmailHelper emailHelper, IEnvironmentHelper environmentHelper, IHttpHelper httpHelper, ILoggerWrapper loggerWrapper, ICacheHelper cacheHelper) { EmailHelper = emailHelper; EnvironmentHelper = environmentHelper; HttpHelper = httpHelper; Log = loggerWrapper; Cache = cacheHelper; }
public RelativityAnalyticsIndexProgressManager(IDBContext eddsDbContext, IEnvironmentHelper environment, int poolId) { _eddsDbContext = eddsDbContext; _environment = environment; Guid = "BED2945C-7710-4BBC-A1CF-A768F2EA997C"; RespectsResourcePool = true; AgentAgentResourcePool = poolId; }
public RunAgentCreate(IDBContext eddsDbContext, IEnvironmentHelper environment, ICreateAgent createAgent, List <AgentsDesired> agentsDesired, List <SpotsPerServer> spotsPerServer, IAPILog logger) { _eddsDbContext = eddsDbContext; _environment = environment; _createAgent = createAgent; _agentsDesired = agentsDesired; _spotsPerServer = spotsPerServer; _logger = logger; }
public void WriteCreateSequence(IGenerator generator, IEnvironmentHelper environment) { WriteLine("CREATE SEQUENCE {0}", generator.Persistence.FullName); Indent++; WriteLine("START WITH {0}", generator.StartWith); WriteLine("INCREMENT BY {0}", generator.Increment); WriteLine("MINVALUE {0}", generator.MinValue); WriteLine("MAXVALUE {0}", generator.MaxValue); }
public virtual void WriteDropForeignKey(IRelation relation, IEnvironmentHelper environment) { if (relation.Persistence.Persisted) { WriteLine("ALTER TABLE {0} DROP CONSTRAINT {1}", relation.ForeignKey.ChildTable.Persistence.FullName, relation.ForeignKey.Name); } }
public RsaFileDecipherZipDecorator(IRsaFileDecipher rsaFileDecipher, IEnvironmentHelper environmentHelper, IZipAlgorithm zipAlgorithm) { this.rsaFileDecipher = rsaFileDecipher; this.environmentHelper = environmentHelper; this.zipAlgorithm = zipAlgorithm; rsaFileDecipher.BlockCompleted += rsaFileDecipher_BlockCompleted; }
public RunAgentDelete(IDBContext eddsDbContext, IEnvironmentHelper environment, IDeleteAgent deleteAgent, int poolId, List <AgentsDesired> agentsToDelete, IAPILog logger) { _eddsDbContext = eddsDbContext; _deleteAgent = deleteAgent; _environment = environment; _agentsToDelete = agentsToDelete; _poolId = poolId; _logger = logger; }
public RsaFactory(IFileFactory fileFactory, Options options, IEnvironmentHelper environmentHelper, IZipAlgorithm zipAlgorithm) { this.fileFactory = fileFactory; this.options = options; this.environmentHelper = environmentHelper; this.zipAlgorithm = zipAlgorithm; }
public CipherManager(IRsaFileCipher rsaFileCipher, IFileUnifier fileUnifier, IEnvironmentHelper environmentHelper, IMessageHelper messageHelper) { this.rsaFileCipher = rsaFileCipher; this.fileUnifier = fileUnifier; this.environmentHelper = environmentHelper; this.messageHelper = messageHelper; }
public GetAgentsDesiredList(IAgentHelper agentHelper, IEnvironmentHelper environment, int poolId, bool isOffHours) { AgentsPerServerObjectList = new List <AgentsDesired>(); _agentHelper = agentHelper; _eddsDbContext = _agentHelper.GetDBContext(-1); _poolId = poolId; _environment = environment; _isOffHours = isOffHours; Run(); }
public GetSpotsPerServerList(IDBContext eddsDbContext, IEnvironmentHelper environment, float adjustmentFactor, int poolId, bool ignoreSearchServers) { agentServerList = new List <AgentServer>(); SpotsPerServerList = new List <SpotsPerServer>(); _eddsDbContext = eddsDbContext; _environment = environment; _adjustmentFactor = adjustmentFactor; _poolId = poolId; _ignoreSearchServers = ignoreSearchServers; Run(); }
public Session(IScriptRunner runner, IConsole console, IGraphManager graphManager, IGatherManager gatherManager, IDataStore dataStore, IFileSystem fileSystem, IConfigManager configManager, IEnvironmentHelper environmentHelper) { _runner = runner; _console = console; _graphManager = graphManager; _gatherManager = gatherManager; _dataStore = dataStore; _fileSystem = fileSystem; _configManager = configManager; _environmentHelper = environmentHelper; }
public CodeGenWCFDomainServicesAdapters(ServicesProxyGenie genie) : base(genie) { outFileName = "ClientProxies.cs"; environment.BaseNamespace = ServicesLayerConfig.ServicesAdaptersNamespace; servicesEnvironment = genie.Lamp.GenieLampUtils.GetEnvironmentHelper(TargetEnvironment.CSharp); servicesEnvironment.BaseNamespace = ServicesLayerConfig.ServicesNamespace; genie.Config.Macro.SetMacro("%ClassName_ServiceProxyAdapter%", ClassName_ServiceProxyAdapter); genie.Config.Macro.SetMacro("%ClassName_PersistentProxyAdapter%", ClassName_PersistentProxyAdapter); }
public ConsoleDebugTargetsProvider(ConfiguredProject configuredProject, IDebugTokenReplacer tokenReplacer, IFileSystem fileSystem, IEnvironmentHelper environment, ProjectProperties properties) { ConfiguredProject = configuredProject; TokenReplacer = tokenReplacer; TheFileSystem = fileSystem; TheEnvironment = environment; Properties = properties; }
public CodeGenBase(GenieBase genie) { this.genie = genie; genie.Model.MetaObjects.SetUnprocessedAll(); if (!DomainLayerConfig.IsDefined) { throw new ApplicationException("Domain layer configuration is not defined in project"); } if (!ServicesLayerConfig.IsDefined) { throw new ApplicationException("Services layer configuration is not defined in project"); } if (ServicesLayerConfig.BaseNamespace == Const.EmptyName) { throw new ApplicationException("Services layer configuration: base namespace is not defined"); } environment = genie.Lamp.GenieLampUtils.GetEnvironmentHelper(TargetEnvironment.CSharp); environment.BaseNamespace = ServicesLayerConfig.ServicesNamespace; domainEnvironment = genie.Lamp.GenieLampUtils.GetEnvironmentHelper(TargetEnvironment.CSharp); domainEnvironment.BaseNamespace = DomainLayerConfig.DomainNamespace; interfacesEnvironment = genie.Lamp.GenieLampUtils.GetEnvironmentHelper(TargetEnvironment.CSharp); interfacesEnvironment.BaseNamespace = ServicesLayerConfig.ServicesInterfacesNamespace; dtoEnvironment = genie.Lamp.GenieLampUtils.GetEnvironmentHelper(TargetEnvironment.CSharp); dtoEnvironment.BaseNamespace = ServicesLayerConfig.ServicesInterfacesNamespace; genie.Config.Macro.SetMacro("%BASE_NAMESPACE%", ServicesLayerConfig.BaseNamespace); genie.Config.Macro.SetMacro("%NAMESPACE_SERVICES%", environment.BaseNamespace); genie.Config.Macro.SetMacro("%NAMESPACE_SERVICES_INTERFACES%", interfacesEnvironment.BaseNamespace); genie.Config.Macro.SetMacro("%NAMESPACE_SERVICES_DTO%", dtoEnvironment.BaseNamespace); genie.Config.Macro.SetMacro("%NAMESPACE_DOMAIN%", DomainLayerConfig.DomainNamespace); genie.Config.Macro.SetMacro("%NAMESPACE_PERSISTENCE%", DomainLayerConfig.PersistenceNamespace); genie.Config.Macro.SetMacro("%ClassName_PersistentObjectDTO%", NamingHelper.ClassName_PersistentObjectDTO); genie.Config.Macro.SetMacro("%ClassName_PersistentObjectDTOAdapter%", NamingHelper.ClassName_PersistentObjectDTOAdapter); genie.Config.Macro.SetMacro("%ClassName_DomainObjectDTO%", NamingHelper.ClassName_DomainObjectDTO); genie.Config.Macro.SetMacro("%ClassName_QueryParams%", NamingHelper.ClassName_ServicesQueryParams); genie.Config.Macro.SetMacro("%ClassName_QueryParam%", NamingHelper.ClassName_ServicesQueryParam); //genie.Config.Macro.SetMacro("%ClassName_UnitOfWork%", NamingHelper.ClassName_UnitOfWorkDTO); genie.Config.Macro.SetMacro("%ClassName_UnitOfWorkDTO%", NamingHelper.ClassName_UnitOfWorkDTO); genie.Config.Macro.SetMacro("%ClassName_UnitOfWorkDomain%", NamingHelper.ClassName_UnitOfWorkDomain); genie.Config.Macro.SetMacro("%ClassName_UnitOfWorkDTOAdapter%", NamingHelper.ClassName_UnitOfWorkDTOAdapter); genie.Config.Macro.SetMacro("%ServiceName_Persistence%", NamingHelper.ServiceName_Persistence); genie.Config.Macro.SetMacro("%PropertyName_InternalObjectId%", NamingHelper.PropertyName_InternalObjectId); genie.Config.Macro.SetMacro("%PropertyName_UnitOfWorkDTO%", NamingHelper.PropertyName_UnitOfWorkDTO); genie.Config.Macro.SetMacro("%PropertyName_AdapterDTO%", NamingHelper.PropertyName_AdapterDTO); }
public void SimpleProperty(AccessLevel accessLevel, VirtualisationLevel virtualisationLevel, IAttribute attribute, IEnvironmentHelper environment) { SimpleProperty(accessLevel, virtualisationLevel, environment.ToTypeName(attribute, true), attribute.Name, true, !attribute.ReadOnly); }
public ConsoleDebugTargetsProvider(UnconfiguredProject project, IDebugTokenReplacer tokenReplacer, IFileSystem fileSystem, IEnvironmentHelper environment, IActiveDebugFrameworkServices activeDebugFramework, ProjectProperties properties) { _tokenReplacer = tokenReplacer; _fileSystem = fileSystem; _environment = environment; _activeDebugFramework = activeDebugFramework; _properties = properties; _project = project; }
public ConsoleDebugTargetsProvider(ConfiguredProject configuredProject, IDebugTokenReplacer tokenReplacer, IFileSystem fileSystem, IEnvironmentHelper environment, IActiveDebugFrameworkServices activeDebugFramework, ProjectProperties properties) { TokenReplacer = tokenReplacer; TheFileSystem = fileSystem; TheEnvironment = environment; ActiveDebugFramework = activeDebugFramework; Properties = properties; UnconfiguredProject = configuredProject.UnconfiguredProject; }
public virtual void WriteCreateForeignKey(IRelation relation, IEnvironmentHelper environment) { if (relation.Persistence.Persisted) { WriteLine("ALTER TABLE {0}", relation.ForeignKey.ChildTable.Persistence.FullName); Indent++; WriteLine("ADD CONSTRAINT {0} FOREIGN KEY", relation.ForeignKey.Name); Indent++; WriteLine("({0})", relation.ForeignKey.ChildTableColumns.ToPersistentNamesString(", ")); Indent--; WriteLine("REFERENCES {0}", relation.ForeignKey.ParentTable.Persistence.FullName); Indent++; WriteLine("({0})", relation.ForeignKey.ParentTableColumns.ToPersistentNamesString(", ")); } }
/// <exception cref="ArgumentNullException">commandsContainer is null</exception> public DecipherCommand(ICommandsContainer commandsContainer, IFilesView filesView, IRsaFactory rsaFactory, IEnvironmentHelper environmentHelper, IFormFactory formFactory, IMessageHelper messageHelper, IFileUnifier fileUnifier) { Checker.CheckNull(commandsContainer); this.commandsContainer = commandsContainer; this.filesView = filesView; this.rsaFactory = rsaFactory; this.environmentHelper = environmentHelper; this.formFactory = formFactory; this.messageHelper = messageHelper; this.fileUnifier = fileUnifier; }
public ConsoleDebugTargetsProvider(UnconfiguredProject project, IDebugTokenReplacer tokenReplacer, IFileSystem fileSystem, IEnvironmentHelper environment, IActiveDebugFrameworkServices activeDebugFramework, ProjectProperties properties, IProjectThreadingService threadingService, IVsUIService <SVsShellDebugger, IVsDebugger10> debugger) { _tokenReplacer = tokenReplacer; _fileSystem = fileSystem; _environment = environment; _activeDebugFramework = activeDebugFramework; _properties = properties; _threadingService = threadingService; _debugger = debugger; _project = project; }
protected SessionResolver(IEnvironmentHelper environmentHelper) { _environmentHelper = environmentHelper; EnableCache = true; }
public SessionResolverToDoDb(IEnvironmentHelper environmentHelper) : base(environmentHelper) { }