public SolutionUpsertService(ICacheService <Solution> cache, TDbContext database, ILogger <UpsertService <TDbContext, Solution> > logger, IUpsertListService <TDbContext, NuGetFeed> nuGetFeeds, IUpsertListService <TDbContext, SolutionFolder> solutionFolders, IUpsertService <TDbContext, AsciiStringReference> strings) : base(cache, database, logger, database.Solutions)
 {
     CacheKey         = record => $"{nameof(SourceCode)}.{nameof(Solution)}={record.NameId}";
     _nuGetFeeds      = nuGetFeeds ?? throw new ArgumentNullException(nameof(nuGetFeeds));
     _solutionFolders = solutionFolders ?? throw new ArgumentNullException(nameof(solutionFolders));
     _strings         = strings ?? throw new ArgumentNullException(nameof(strings));
 }
 public BaseTypeUpsertService(ICacheService <BaseType> cache, TDbContext database, ILogger <UpsertService <TDbContext, BaseType> > logger, IUpsertService <TDbContext, Identifier> identifiers, IUpsertUniqueListService <TDbContext, TypeArgument, TypeArgumentList, TypeArgumentListAssociation> typeArgumentLists)
     : base(cache, database, logger, database.BaseTypes)
 {
     CacheKey           = record => $"{nameof(SourceCode)}.{nameof(BaseType)}={record.IdentifierId}:{record.TypeArgumentListId}";
     _identifiers       = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _typeArgumentLists = typeArgumentLists ?? throw new ArgumentNullException(nameof(typeArgumentLists));
 }
Ejemplo n.º 3
0
 public AttributeUpsertService(ICacheService <Attribute> cache, TDbContext database, ILogger <UpsertService <TDbContext, Attribute> > logger, IUpsertService <TDbContext, AttributeArgumentListExpression> attributeArgumentListExpressions, IUpsertService <TDbContext, Identifier> identifiers)
     : base(cache, database, logger, database.Attributes)
 {
     CacheKey = record => $"{nameof(CSharp)}.{nameof(Attribute)}={record.AttributeArgumentListExpressionId}:{record.IdentifierId}";
     _attributeArgumentListExpressions = attributeArgumentListExpressions ?? throw new ArgumentNullException(nameof(attributeArgumentListExpressions));
     _identifiers = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
 }
 public MsBuildProjectFileUpsertService(ICacheService <MsBuildProjectFile> cache, TDbContext database, ILogger <UpsertService <TDbContext, MsBuildProjectFile> > logger, IUpsertService <TDbContext, MsBuildConditionalContructItemGroupPropertyGroupSection> sections, IUpsertUniqueListService <TDbContext, MsBuildTarget, MsBuildTargetList, MsBuildTargetListAssociation> targets)
     : base(cache, database, logger, database.MsBuildProjectFiles)
 {
     CacheKey  = record => $"{nameof(VisualStudio)}.{nameof(MsBuildProjectFile)}={record.ProjectType}:{record.MsBuildConditionalContructItemGroupPropertyGroupSectionId}:{record.MsBuildTargetListId}";
     _sections = sections ?? throw new ArgumentNullException(nameof(sections));
     _targets  = targets ?? throw new ArgumentNullException(nameof(targets));
 }
Ejemplo n.º 5
0
 public ClassDeclarationUpsertService(ICacheService <ClassDeclaration> cache, TDbContext database, ILogger <UpsertService <TDbContext, ClassDeclaration> > logger,
                                      IUpsertUniqueListService <TDbContext, Attribute, AttributeListCollection, AttributeListCollectionAssociation> attributeLists,
                                      IUpsertUniqueListService <TDbContext, BaseType, BaseList, BaseListAssociation> baseLists,
                                      IUpsertUniqueListService <TDbContext, ConstraintClause, ConstraintClauseList, ConstraintClauseListAssociation> constraintClauseLists,
                                      IUpsertUniqueListService <TDbContext, DocumentationComment, DocumentationCommentList, DocumentationCommentListAssociation> documentationCommentLists,
                                      IUpsertUniqueListService <TDbContext, Field, FieldList, FieldListAssociation> fieldLists,
                                      IUpsertService <TDbContext, Finalizer> finalizers,
                                      IUpsertService <TDbContext, Identifier> identifiers,
                                      IUpsertUniqueListService <TDbContext, Method, MethodList, MethodListAssociation> methodLists,
                                      IUpsertUniqueListService <TDbContext, SyntaxToken, ModifierList, ModifierListAssociation> modifierLists,
                                      IUpsertService <TDbContext, Namespace> namespaces,
                                      IUpsertUniqueListService <TDbContext, Property, PropertyList, PropertyListAssociation> propertyLists,
                                      IUpsertUniqueListService <TDbContext, TypeParameter, TypeParameterList, TypeParameterListAssociation> typeParameterLists,
                                      IUpsertUniqueListService <TDbContext, UsingDirective, UsingDirectiveList, UsingDirectiveListAssociation> usingDirectiveLists)
     : base(cache, database, logger, database.ClassDeclarations)
 {
     CacheKey                   = record => $"{nameof(SourceCode)}.{nameof(ClassDeclaration)}={record.AttributeListCollectionId}:{record.BaseListId}:{record.ConstraintClauseListId}:{record.ConstructorListId}:{record.DocumentationCommentListId}:{record.FieldListId}:{record.FinalizerId}:{record.IdentifierId}:{record.MethodListId}:{record.ModifierListId}:{record.NamespaceId}:{record.PropertyListId}:{record.TypeParameterListId}:{record.UsingDirectiveListId}";
     _attributeLists            = attributeLists ?? throw new ArgumentNullException(nameof(attributeLists));
     _baseLists                 = baseLists ?? throw new ArgumentNullException(nameof(baseLists));
     _constraintClauseLists     = constraintClauseLists ?? throw new ArgumentNullException(nameof(constraintClauseLists));
     _documentationCommentLists = documentationCommentLists ?? throw new ArgumentNullException(nameof(documentationCommentLists));
     _fieldLists                = fieldLists ?? throw new ArgumentNullException(nameof(fieldLists));
     _finalizers                = finalizers ?? throw new ArgumentNullException(nameof(finalizers));
     _identifiers               = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _methodLists               = methodLists ?? throw new ArgumentNullException(nameof(methodLists));
     _modifierLists             = modifierLists ?? throw new ArgumentNullException(nameof(modifierLists));
     _namespaces                = namespaces ?? throw new ArgumentNullException(nameof(namespaces));
     _propertyLists             = propertyLists ?? throw new ArgumentNullException(nameof(propertyLists));
     _typeParameterLists        = typeParameterLists ?? throw new ArgumentNullException(nameof(typeParameterLists));
     _usingDirectiveLists       = usingDirectiveLists ?? throw new ArgumentNullException(nameof(usingDirectiveLists));
 }
Ejemplo n.º 6
0
 public EnumMemberUpsertService(ICacheService <EnumMember> cache, TDbContext database, ILogger <UpsertService <TDbContext, EnumMember> > logger, IUpsertService <TDbContext, Identifier> identifiers, IUpsertUniqueListService <TDbContext, DocumentationComment, DocumentationCommentList, DocumentationCommentListAssociation> documentationComments)
     : base(cache, database, logger, database.EnumMembers)
 {
     CacheKey               = record => $"{nameof(SourceCode)}.{nameof(EnumMember)}={record.EqualsValue}:{record.IdentifierId}:{record.DocumentationCommentListId}";
     _identifiers           = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _documentationComments = documentationComments ?? throw new ArgumentNullException(nameof(documentationComments));
 }
 public MsBuildPropertyGroupUpsertService(ICacheService <MsBuildPropertyGroup> cache, TDbContext database, ILogger <UpsertService <TDbContext, MsBuildPropertyGroup> > logger, IUpsertService <TDbContext, MsBuildCondition> conditions, IUpsertUniqueListService <TDbContext, MsBuildProperty, MsBuildPropertyList, MsBuildPropertyListAssociation> properties)
     : base(cache, database, logger, database.MsBuildPropertyGroups)
 {
     CacheKey    = record => $"{nameof(VisualStudio)}.{nameof(MsBuildPropertyGroup)}={record.MsBuildPropertyListId}:{record.MsBuildConditionId}";
     _conditions = conditions ?? throw new ArgumentNullException(nameof(conditions));
     _properties = properties ?? throw new ArgumentNullException(nameof(properties));
 }
Ejemplo n.º 8
0
 public DomainUpsertService(ICacheService <Domain> cache, TDbContext database, ILogger <UpsertService <TDbContext, Domain> > logger, IUpsertListService <TDbContext, Schema> schemas, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.Domains)
 {
     CacheKey = record => $"{nameof(BusinessObjects)}.{nameof(Domain)}={record.NameId}:{record.SystemId}";
     _schemas = schemas ?? throw new ArgumentNullException(nameof(schemas));
     _strings = strings ?? throw new ArgumentNullException(nameof(strings));
 }
Ejemplo n.º 9
0
 public FinalizerUpsertService(ICacheService <Finalizer> cache, TDbContext database, ILogger <UpsertService <TDbContext, Finalizer> > logger, IUpsertService <TDbContext, Block> blocks, IUpsertService <TDbContext, Identifier> identifiers)
     : base(cache, database, logger, database.Finalizers)
 {
     CacheKey     = record => $"{nameof(SourceCode)}.{nameof(Finalizer)}={record.BlockId}:{record.IdentifierId}";
     _blocks      = blocks ?? throw new ArgumentNullException(nameof(blocks));
     _identifiers = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
 }
 public MsBuildItemUpsertService(ICacheService <MsBuildItem> cache, TDbContext database, ILogger <UpsertService <TDbContext, MsBuildItem> > logger, IUpsertUniqueListService <TDbContext, MsBuildItemAttribute, MsBuildItemAttributeList, MsBuildItemAttributeListAssociation> attributes, IUpsertService <TDbContext, MsBuildCondition> conditions, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.MsBuildItems)
 {
     CacheKey    = record => $"{nameof(VisualStudio)}.{nameof(MsBuildItem)}={record.ElementNameId}:{record.MsBuildConditionId}:{record.MsBuildItemAttributeListId}";
     _attributes = attributes ?? throw new ArgumentNullException(nameof(attributes));
     _conditions = conditions ?? throw new ArgumentNullException(nameof(conditions));
     _strings    = strings ?? throw new ArgumentNullException(nameof(strings));
 }
Ejemplo n.º 11
0
 public EnumMemberUpsertService(ICacheService <EnumMember> cache, TDbContext database, ILogger <UpsertService <TDbContext, EnumMember> > logger, IUpsertService <TDbContext, UnicodeStringReference> strings, IUpsertService <TDbContext, DocumentationComment> documentationComments, IUpsertService <TDbContext, Identifier> identifiers)
     : base(cache, database, logger, database.EnumMembers)
 {
     CacheKey = record => $"{nameof(TypeScript)}.{nameof(EnumMember)}={record.DocumentationCommentId}:{record.EqualsValueId}:{record.IdentifierId}";
     _documentationComments = documentationComments ?? throw new ArgumentNullException(nameof(documentationComments));
     _identifiers           = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _strings = strings ?? throw new ArgumentNullException(nameof(strings));
 }
Ejemplo n.º 12
0
 public RestApiController(
     ILogger <RestApiController <TDbContext, TRecord> > logger,
     IRepository <TDbContext, TRecord> repository,
     IUpsertService <TDbContext, TRecord> upsertService)
 {
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     _repository    = repository ?? throw new ArgumentNullException(nameof(repository));
     _upsertService = upsertService ?? throw new ArgumentNullException(nameof(upsertService));
 }
Ejemplo n.º 13
0
 public UpsertUniqueListService(
     ILogger <UpsertUniqueListService <TDbContext, TRecord, TRecordList, TRecordListAssociation> > logger,
     IUpsertListService <TDbContext, TRecord> records,
     IUpsertService <TDbContext, TRecordList> recordList)
 {
     _logger     = logger ?? throw new ArgumentNullException(nameof(logger));
     _records    = records ?? throw new ArgumentNullException(nameof(records));
     _recordList = recordList ?? throw new ArgumentNullException(nameof(recordList));
 }
Ejemplo n.º 14
0
 public AccessorUpsertService(ICacheService <Accessor> cache, TDbContext database, ILogger <UpsertService <TDbContext, Accessor> > logger, IUpsertService <TDbContext, Block> blocks, IUpsertService <TDbContext, Expression> expressions, IUpsertUniqueListService <TDbContext, SyntaxToken, ModifierList, ModifierListAssociation> modifierLists, IUpsertService <TDbContext, SyntaxToken> syntaxTokens)
     : base(cache, database, logger, database.Accessors)
 {
     CacheKey       = record => $"{nameof(CSharp)}.{nameof(Accessor)}={record.ArrowClauseExpressionBodyId}:{record.BodyId}:{record.ModifierListId}:{record.SyntaxTokenId}";
     _blocks        = blocks ?? throw new ArgumentNullException(nameof(blocks));
     _expressions   = expressions ?? throw new ArgumentNullException(nameof(expressions));
     _modifierLists = modifierLists ?? throw new ArgumentNullException(nameof(modifierLists));
     _syntaxTokens  = syntaxTokens ?? throw new ArgumentNullException(nameof(syntaxTokens));
 }
Ejemplo n.º 15
0
 public ConceptUpsertService(ICacheService <Concept> cache, TDbContext database, ILogger <UpsertService <TDbContext, Concept> > logger, IUpsertListService <TDbContext, ConceptManyOptional> manyOptional, IUpsertListService <TDbContext, ConceptManyRequired> manyRequired, IUpsertListService <TDbContext, ConceptOneOptional> oneOptional, IUpsertListService <TDbContext, ConceptOneRequired> oneRequired, IUpsertListService <TDbContext, ConceptProperty> properties, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.Concepts)
 {
     CacheKey      = record => $"{nameof(BusinessObjects)}.{nameof(Concept)}={record.NameId}:{record.SchemaId}";
     _manyOptional = manyOptional ?? throw new ArgumentNullException(nameof(manyOptional));
     _manyRequired = manyRequired ?? throw new ArgumentNullException(nameof(manyRequired));
     _oneOptional  = oneOptional ?? throw new ArgumentNullException(nameof(oneOptional));
     _oneRequired  = oneRequired ?? throw new ArgumentNullException(nameof(oneRequired));
     _properties   = properties ?? throw new ArgumentNullException(nameof(properties));
     _strings      = strings ?? throw new ArgumentNullException(nameof(strings));
 }
 public ParameterUpsertService(ICacheService <Parameter> cache, TDbContext database, ILogger <UpsertService <TDbContext, Parameter> > logger,
                               IUpsertUniqueListService <TDbContext, Attribute, AttributeListCollection, AttributeListCollectionAssociation> attributeLists,
                               IUpsertService <TDbContext, Expression> expressions,
                               IUpsertService <TDbContext, Identifier> identifiers)
     : base(cache, database, logger, database.Parameters)
 {
     CacheKey        = record => $"{nameof(SourceCode)}.{nameof(Parameter)}={record.AttributeListCollectionId}:{record.DefaultValueId}:{record.IdentifierId}:{record.TypeId}";
     _attributeLists = attributeLists ?? throw new ArgumentNullException(nameof(attributeLists));
     _expressions    = expressions ?? throw new ArgumentNullException(nameof(expressions));
     _identifiers    = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
 }
Ejemplo n.º 17
0
 public ParameterUpsertService(ICacheService <Parameter> cache, TDbContext database, ILogger <UpsertService <TDbContext, Parameter> > logger,
                               IUpsertUniqueListService <TDbContext, Decorator, DecoratorList, DecoratorListAssociation> decoratorLists,
                               IUpsertService <TDbContext, DocumentationComment> documentationComments,
                               IUpsertService <TDbContext, Expression> expressions,
                               IUpsertService <TDbContext, Identifier> identifiers)
     : base(cache, database, logger, database.Parameters)
 {
     CacheKey               = record => $"{nameof(TypeScript)}.{nameof(Parameter)}={record.IsReadonly}:{record.DecoratorListId}:{record.DefaultValueId}:{record.DocumentationCommentId}:{record.IdentifierId}:{record.TypeId}";
     _decoratorLists        = decoratorLists ?? throw new ArgumentNullException(nameof(decoratorLists));
     _documentationComments = documentationComments ?? throw new ArgumentNullException(nameof(documentationComments));
     _expressions           = expressions ?? throw new ArgumentNullException(nameof(expressions));
     _identifiers           = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
 }
 public ConstructorUpsertService(ICacheService <Constructor> cache, TDbContext database, ILogger <UpsertService <TDbContext, Constructor> > logger,
                                 IUpsertUniqueListService <TDbContext, Decorator, DecoratorList, DecoratorListAssociation> attributeLists,
                                 IUpsertService <TDbContext, Block> blocks,
                                 IUpsertService <TDbContext, Identifier> identifiers,
                                 IUpsertUniqueListService <TDbContext, Parameter, ParameterList, ParameterListAssociation> parameterLists)
     : base(cache, database, logger, database.Constructors)
 {
     CacheKey        = record => $"{nameof(TypeScript)}.{nameof(Constructor)}={record.AccessModifier}:{record.BlockId}:{record.DecoratorListId}:{record.IdentifierId}:{record.ParameterListId}";
     _attributeLists = attributeLists ?? throw new ArgumentNullException(nameof(attributeLists));
     _blocks         = blocks ?? throw new ArgumentNullException(nameof(blocks));
     _identifiers    = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _parameterLists = parameterLists ?? throw new ArgumentNullException(nameof(parameterLists));
 }
Ejemplo n.º 19
0
 public EnumDeclarationUpsertService(ICacheService <EnumDeclaration> cache, TDbContext database, ILogger <UpsertService <TDbContext, EnumDeclaration> > logger,
                                     IUpsertService <TDbContext, DocumentationComment> documentationComments,
                                     IUpsertUniqueListService <TDbContext, EnumMember, EnumMemberList, EnumMemberListAssociation> enumMemberLists,
                                     IUpsertService <TDbContext, Identifier> identifiers,
                                     IUpsertUniqueListService <TDbContext, ImportStatement, ImportStatementList, ImportStatementListAssociation> importStatementLists,
                                     IUpsertService <TDbContext, Namespace> namespaces)
     : base(cache, database, logger, database.EnumDeclarations)
 {
     CacheKey = record => $"{nameof(TypeScript)}.{nameof(EnumDeclaration)}={record.EnumMemberListId}:{record.DocumentationCommentId}:{record.IdentifierId}:{record.ImportStatementListId}:{record.NamespaceId}";
     _documentationComments = documentationComments ?? throw new ArgumentNullException(nameof(documentationComments));
     _enumMemberLists       = enumMemberLists ?? throw new ArgumentNullException(nameof(enumMemberLists));
     _identifiers           = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _importStatementLists  = importStatementLists ?? throw new ArgumentNullException(nameof(importStatementLists));
     _namespaces            = namespaces ?? throw new ArgumentNullException(nameof(namespaces));
 }
 public FieldUpsertService(ICacheService <Field> cache, TDbContext database, ILogger <UpsertService <TDbContext, Field> > logger,
                           IUpsertUniqueListService <TDbContext, Attribute, AttributeListCollection, AttributeListCollectionAssociation> attributeLists,
                           IUpsertUniqueListService <TDbContext, DocumentationComment, DocumentationCommentList, DocumentationCommentListAssociation> documentationCommentLists,
                           IUpsertService <TDbContext, Expression> expressions,
                           IUpsertService <TDbContext, Identifier> identifiers,
                           IUpsertUniqueListService <TDbContext, SyntaxToken, ModifierList, ModifierListAssociation> modifierLists)
     : base(cache, database, logger, database.Fields)
 {
     CacheKey                   = record => $"{nameof(CSharp)}.{nameof(Field)}={record.AttributeListCollectionId}:{record.DocumentationCommentListId}:{record.IdentifierId}:{record.InitializerId}:{record.ModifierListId}:{record.TypeId}";
     _attributeLists            = attributeLists ?? throw new ArgumentNullException(nameof(attributeLists));
     _documentationCommentLists = documentationCommentLists ?? throw new ArgumentNullException(nameof(documentationCommentLists));
     _expressions               = expressions ?? throw new ArgumentNullException(nameof(expressions));
     _identifiers               = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _modifierLists             = modifierLists ?? throw new ArgumentNullException(nameof(modifierLists));
 }
 public MethodUpsertService(ICacheService <Method> cache, TDbContext database, ILogger <UpsertService <TDbContext, Method> > logger,
                            IUpsertUniqueListService <TDbContext, Decorator, DecoratorList, DecoratorListAssociation> decoratorLists,
                            IUpsertService <TDbContext, Block> blocks,
                            IUpsertService <TDbContext, DocumentationComment> documentationComments,
                            IUpsertService <TDbContext, Identifier> identifiers,
                            IUpsertUniqueListService <TDbContext, Parameter, ParameterList, ParameterListAssociation> parameterLists,
                            IUpsertUniqueListService <TDbContext, TypeParameter, TypeParameterList, TypeParameterListAssociation> typeParameterLists)
     : base(cache, database, logger, database.Methods)
 {
     CacheKey               = record => $"{nameof(TypeScript)}.{nameof(Method)}={record.AccessModifier}:{record.IsAsync}:{record.BlockId}:{record.DecoratorListId}:{record.DocumentationCommentId}:{record.IdentifierId}:{record.ParameterListId}:{record.TypeId}:{record.TypeParameterListId}";
     _blocks                = blocks ?? throw new ArgumentNullException(nameof(blocks));
     _decoratorLists        = decoratorLists ?? throw new ArgumentNullException(nameof(decoratorLists));
     _documentationComments = documentationComments ?? throw new ArgumentNullException(nameof(documentationComments));
     _identifiers           = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _parameterLists        = parameterLists ?? throw new ArgumentNullException(nameof(parameterLists));
     _typeParameterLists    = typeParameterLists ?? throw new ArgumentNullException(nameof(typeParameterLists));
 }
 public PropertyUpsertService(ICacheService <Property> cache, TDbContext database, ILogger <UpsertService <TDbContext, Property> > logger,
                              IUpsertUniqueListService <TDbContext, Accessor, AccessorList, AccessorListAssociation> accessorLists,
                              IUpsertUniqueListService <TDbContext, Attribute, AttributeListCollection, AttributeListCollectionAssociation> attributeLists,
                              IUpsertService <TDbContext, Block> blocks,
                              IUpsertUniqueListService <TDbContext, DocumentationComment, DocumentationCommentList, DocumentationCommentListAssociation> documentationCommentLists,
                              IUpsertService <TDbContext, Expression> expressions,
                              IUpsertService <TDbContext, Identifier> identifiers,
                              IUpsertUniqueListService <TDbContext, SyntaxToken, ModifierList, ModifierListAssociation> modifierLists,
                              IUpsertUniqueListService <TDbContext, Parameter, ParameterList, ParameterListAssociation> parameterLists,
                              IUpsertUniqueListService <TDbContext, TypeParameter, TypeParameterList, TypeParameterListAssociation> typeParameterLists)
     : base(cache, database, logger, database.Properties)
 {
     CacheKey                   = record => $"{nameof(CSharp)}.{nameof(Property)}={record.AccessorListId}:{record.AttributeListCollectionId}:{record.DocumentationCommentListId}:{record.IdentifierId}:{record.ModifierListId}:{record.TypeId}";
     _accessorLists             = accessorLists ?? throw new ArgumentNullException(nameof(accessorLists));
     _attributeLists            = attributeLists ?? throw new ArgumentNullException(nameof(attributeLists));
     _documentationCommentLists = documentationCommentLists ?? throw new ArgumentNullException(nameof(documentationCommentLists));
     _identifiers               = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _modifierLists             = modifierLists ?? throw new ArgumentNullException(nameof(modifierLists));
 }
Ejemplo n.º 23
0
 public ConstructorUpsertService(ICacheService <Constructor> cache, TDbContext database, ILogger <UpsertService <TDbContext, Constructor> > logger,
                                 IUpsertUniqueListService <TDbContext, Attribute, AttributeListCollection, AttributeListCollectionAssociation> attributeLists,
                                 IUpsertService <TDbContext, Block> blocks,
                                 IUpsertService <TDbContext, ConstructorBaseInitializer> constructorBaseInitializers,
                                 IUpsertUniqueListService <TDbContext, DocumentationComment, DocumentationCommentList, DocumentationCommentListAssociation> documentationCommentLists,
                                 IUpsertService <TDbContext, Identifier> identifiers,
                                 IUpsertUniqueListService <TDbContext, SyntaxToken, ModifierList, ModifierListAssociation> modifierLists,
                                 IUpsertUniqueListService <TDbContext, Parameter, ParameterList, ParameterListAssociation> parameterLists)
     : base(cache, database, logger, database.Constructors)
 {
     CacheKey        = record => $"{nameof(CSharp)}.{nameof(Constructor)}={record.AttributeListCollectionId}:{record.BlockId}:{record.ConstructorBaseInitializerId}:{record.DocumentationCommentListId}:{record.IdentifierId}:{record.ModifierListId}:{record.ParameterListId}";
     _attributeLists = attributeLists ?? throw new ArgumentNullException(nameof(attributeLists));
     _blocks         = blocks ?? throw new ArgumentNullException(nameof(blocks));
     _constructorBaseInitializers = constructorBaseInitializers ?? throw new ArgumentNullException(nameof(constructorBaseInitializers));
     _documentationCommentLists   = documentationCommentLists ?? throw new ArgumentNullException(nameof(documentationCommentLists));
     _identifiers    = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _modifierLists  = modifierLists ?? throw new ArgumentNullException(nameof(modifierLists));
     _parameterLists = parameterLists ?? throw new ArgumentNullException(nameof(parameterLists));
 }
Ejemplo n.º 24
0
 public MethodUpsertService(ICacheService <Method> cache, TDbContext database, ILogger <UpsertService <TDbContext, Method> > logger,
                            IUpsertUniqueListService <TDbContext, Attribute, AttributeListCollection, AttributeListCollectionAssociation> attributeLists,
                            IUpsertService <TDbContext, Block> blocks,
                            IUpsertUniqueListService <TDbContext, DocumentationComment, DocumentationCommentList, DocumentationCommentListAssociation> documentationCommentLists,
                            IUpsertService <TDbContext, Expression> expressions,
                            IUpsertService <TDbContext, Identifier> identifiers,
                            IUpsertUniqueListService <TDbContext, SyntaxToken, ModifierList, ModifierListAssociation> modifierLists,
                            IUpsertUniqueListService <TDbContext, Parameter, ParameterList, ParameterListAssociation> parameterLists,
                            IUpsertUniqueListService <TDbContext, TypeParameter, TypeParameterList, TypeParameterListAssociation> typeParameterLists)
     : base(cache, database, logger, database.Methods)
 {
     CacheKey                   = record => $"{nameof(SourceCode)}.{nameof(Method)}={record.ArrowClauseExpressionValueId}:{record.AttributeListCollectionId}:{record.BlockId}:{record.DocumentationCommentListId}:{record.IdentifierId}:{record.ModifierListId}:{record.ParameterListId}:{record.TypeId}:{record.TypeParameterListId}";
     _attributeLists            = attributeLists ?? throw new ArgumentNullException(nameof(attributeLists));
     _blocks                    = blocks ?? throw new ArgumentNullException(nameof(blocks));
     _documentationCommentLists = documentationCommentLists ?? throw new ArgumentNullException(nameof(documentationCommentLists));
     _expressions               = expressions ?? throw new ArgumentNullException(nameof(expressions));
     _identifiers               = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _modifierLists             = modifierLists ?? throw new ArgumentNullException(nameof(modifierLists));
     _parameterLists            = parameterLists ?? throw new ArgumentNullException(nameof(parameterLists));
     _typeParameterLists        = typeParameterLists ?? throw new ArgumentNullException(nameof(typeParameterLists));
 }
 public InterfaceDeclarationUpsertService(ICacheService <InterfaceDeclaration> cache, TDbContext database, ILogger <UpsertService <TDbContext, InterfaceDeclaration> > logger,
                                          IUpsertUniqueListService <TDbContext, Decorator, DecoratorList, DecoratorListAssociation> attributeLists,
                                          IUpsertUniqueListService <TDbContext, BaseType, BaseList, BaseListAssociation> baseLists,
                                          IUpsertService <TDbContext, DocumentationComment> documentationComments,
                                          IUpsertService <TDbContext, Identifier> identifiers,
                                          IUpsertUniqueListService <TDbContext, ImportStatement, ImportStatementList, ImportStatementListAssociation> importStatementLists,
                                          IUpsertUniqueListService <TDbContext, Method, MethodList, MethodListAssociation> methodLists,
                                          IUpsertService <TDbContext, Namespace> namespaces,
                                          IUpsertUniqueListService <TDbContext, Property, PropertyList, PropertyListAssociation> propertyLists,
                                          IUpsertUniqueListService <TDbContext, TypeParameter, TypeParameterList, TypeParameterListAssociation> typeParameterLists)
     : base(cache, database, logger, database.InterfaceDeclarations)
 {
     CacheKey               = record => $"{nameof(TypeScript)}.{nameof(InterfaceDeclaration)}={record.DecoratorListId}:{record.ExtendsList}:{record.DocumentationCommentId}:{record.IdentifierId}:{record.ImportStatementListId}:{record.MethodListId}:{record.NamespaceId}:{record.PropertyListId}:{record.TypeParameterListId}";
     _decoratorLists        = attributeLists ?? throw new ArgumentNullException(nameof(attributeLists));
     _baseLists             = baseLists ?? throw new ArgumentNullException(nameof(baseLists));
     _documentationComments = documentationComments ?? throw new ArgumentNullException(nameof(documentationComments));
     _identifiers           = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _importStatementLists  = importStatementLists ?? throw new ArgumentNullException(nameof(importStatementLists));
     _methodLists           = methodLists ?? throw new ArgumentNullException(nameof(methodLists));
     _namespaces            = namespaces ?? throw new ArgumentNullException(nameof(namespaces));
     _propertyLists         = propertyLists ?? throw new ArgumentNullException(nameof(propertyLists));
     _typeParameterLists    = typeParameterLists ?? throw new ArgumentNullException(nameof(typeParameterLists));
 }
 public IdentifierUpsertService(ICacheService <Identifier> cache, TDbContext database, ILogger <UpsertService <TDbContext, Identifier> > logger, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.Identifiers)
 {
     CacheKey = record => $"{nameof(TypeScript)}.{nameof(Identifier)}={record.NameId}";
     _strings = strings ?? throw new ArgumentNullException(nameof(strings));
 }
 public ArgumentUpsertService(ICacheService <Argument> cache, TDbContext database, ILogger <UpsertService <TDbContext, Argument> > logger, IUpsertService <TDbContext, Identifier> identifiers)
     : base(cache, database, logger, database.Arguments)
 {
     CacheKey     = record => $"{nameof(SourceCode)}.{nameof(Argument)}={record.IdentifierId}";
     _identifiers = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
 }
 public StatementListUpsertService(ICacheService <StatementList> cache, TDbContext database, ILogger <UpsertService <TDbContext, StatementList> > logger, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.StatementLists)
 {
     CacheKey = record => $"{nameof(SourceCode)}.{nameof(Expression)}={record.ListIdentifierId}";
     _strings = strings ?? throw new ArgumentNullException(nameof(strings));
 }
 public ModifierListUpsertService(ICacheService <ModifierList> cache, TDbContext database, ILogger <UpsertService <TDbContext, ModifierList> > logger, IUpsertService <TDbContext, AsciiStringReference> strings)
     : base(cache, database, logger, database.ModifierLists)
 {
     CacheKey = record => $"{nameof(CSharp)}.{nameof(ModifierList)}={record.ListIdentifierId}";
     _strings = strings ?? throw new ArgumentNullException(nameof(strings));
 }
Ejemplo n.º 30
0
 public ConstraintClauseUpsertService(ICacheService <ConstraintClause> cache, TDbContext database, ILogger <UpsertService <TDbContext, ConstraintClause> > logger, IUpsertUniqueListService <TDbContext, Constraint, ConstraintList, ConstraintListAssociation> constraintList, IUpsertService <TDbContext, Identifier> identifiers)
     : base(cache, database, logger, database.ConstraintClauses)
 {
     CacheKey        = record => $"{nameof(CSharp)}.{nameof(ConstraintClause)}={record.ConstraintListId}:{record.IdentifierId}";
     _identifiers    = identifiers ?? throw new ArgumentNullException(nameof(identifiers));
     _constraintList = constraintList ?? throw new ArgumentNullException(nameof(constraintList));
 }