public MsBuildTaskUpsertService(ICacheService <MsBuildTask> cache, TDbContext database, ILogger <UpsertService <TDbContext, MsBuildTask> > logger, IUpsertService <TDbContext, AsciiStringReference> strings, IUpsertUniqueListService <TDbContext, MsBuildTaskAttribute, MsBuildTaskAttributeList, MsBuildTaskAttributeListAssociation> attributes)
     : base(cache, database, logger, database.MsBuildTasks)
 {
     CacheKey    = record => $"{nameof(VisualStudio)}.{nameof(MsBuildTask)}={record.ElementId}:{record.MsBuildTaskAttributeListId}";
     _attributes = attributes ?? throw new ArgumentNullException(nameof(attributes));
     _strings    = strings ?? throw new ArgumentNullException(nameof(strings));
 }
 public MsBuildItemGroupUpsertService(ICacheService <MsBuildItemGroup> cache, TDbContext database, ILogger <UpsertService <TDbContext, MsBuildItemGroup> > logger, IUpsertService <TDbContext, MsBuildCondition> conditions, IUpsertUniqueListService <TDbContext, MsBuildItem, MsBuildItemList, MsBuildItemListAssociation> items)
     : base(cache, database, logger, database.MsBuildItemGroups)
 {
     CacheKey    = record => $"{nameof(VisualStudio)}.{nameof(MsBuildItemGroup)}={record.MsBuildItemListId}:{record.MsBuildConditionId}";
     _conditions = conditions ?? throw new ArgumentNullException(nameof(conditions));
     _items      = items ?? throw new ArgumentNullException(nameof(items));
 }
Ejemplo n.º 3
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 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.º 5
0
 public MsBuildTargetUpsertService(ICacheService <MsBuildTarget> cache, TDbContext database, ILogger <UpsertService <TDbContext, MsBuildTarget> > logger, IUpsertService <TDbContext, AsciiStringReference> strings, IUpsertUniqueListService <TDbContext, MsBuildTask, MsBuildTaskList, MsBuildTaskListAssociation> tasks)
     : base(cache, database, logger, database.MsBuildTargets)
 {
     CacheKey = record => $"{nameof(VisualStudio)}.{nameof(MsBuildTarget)}={record.MsBuildTaskListId}:{record.NameId}:{record.OutputsId}";
     _strings = strings ?? throw new ArgumentNullException(nameof(strings));
     _tasks   = tasks ?? throw new ArgumentNullException(nameof(tasks));
 }
Ejemplo n.º 6
0
 public ClassDeclarationUpsertService(ICacheService <ClassDeclaration> cache, TDbContext database, ILogger <UpsertService <TDbContext, ClassDeclaration> > logger,
                                      IUpsertUniqueListService <TDbContext, Decorator, DecoratorList, DecoratorListAssociation> attributeLists,
                                      IUpsertUniqueListService <TDbContext, BaseType, BaseList, BaseListAssociation> baseLists,
                                      IUpsertService <TDbContext, Constructor> constuctors,
                                      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.ClassDeclarations)
 {
     CacheKey               = record => $"{nameof(TypeScript)}.{nameof(ClassDeclaration)}={record.DecoratorListId}:{record.ImplementsListId}:{record.ExtendsListId}:{record.ConstructorId}:{record.DocumentationCommentId}:{record.IdentifierId}:{record.ImportStatementListId}:{record.MethodListId}:{record.NamespaceId}:{record.PropertyListId}:{record.TypeParameterListId}:{record.Export}:{record.IsAbstract}";
     _decoratorLists        = attributeLists ?? throw new ArgumentNullException(nameof(attributeLists));
     _baseLists             = baseLists ?? throw new ArgumentNullException(nameof(baseLists));
     _constructors          = constuctors ?? throw new ArgumentNullException(nameof(constuctors));
     _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 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.º 8
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));
 }
Ejemplo n.º 9
0
 public MsBuildConditionalConstructUpsertService(ICacheService <MsBuildConditionalConstruct> cache, TDbContext database, ILogger <UpsertService <TDbContext, MsBuildConditionalConstruct> > logger, IUpsertService <TDbContext, MsBuildConditionalConstructOtherwiseElement> otherwise, IUpsertUniqueListService <TDbContext, MsBuildConditionalConstructWhenElement, MsBuildConditionalConstructWhenElementList, MsBuildConditionalConstructWhenElementListAssociation> whens)
     : base(cache, database, logger, database.MsBuildConditionalConstructs)
 {
     CacheKey   = record => $"{nameof(VisualStudio)}.{nameof(MsBuildConditionalConstruct)}={record.MsBuildConditionalConstructOtherwiseElementId}:{record.MsBuildConditionalConstructWhenElementListId}";
     _otherwise = otherwise ?? throw new ArgumentNullException(nameof(otherwise));
     _whens     = whens ?? throw new ArgumentNullException(nameof(whens));
 }
Ejemplo n.º 10
0
 public StructDeclarationUpsertService(ICacheService <StructDeclaration> cache, TDbContext database, ILogger <UpsertService <TDbContext, StructDeclaration> > logger,
                                       IUpsertUniqueListService <TDbContext, Attribute, AttributeListCollection, AttributeListCollectionAssociation> attributeLists,
                                       IUpsertUniqueListService <TDbContext, BaseType, BaseList, BaseListAssociation> baseLists,
                                       IUpsertUniqueListService <TDbContext, ConstraintClause, ConstraintClauseList, ConstraintClauseListAssociation> constraintClauseLists,
                                       IUpsertUniqueListService <TDbContext, Constructor, ConstructorList, ConstructorListAssociation> constuctorLists,
                                       IUpsertUniqueListService <TDbContext, DocumentationComment, DocumentationCommentList, DocumentationCommentListAssociation> documentationCommentLists,
                                       IUpsertUniqueListService <TDbContext, Field, FieldList, FieldListAssociation> fieldLists,
                                       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.StructDeclarations)
 {
     CacheKey                   = record => $"{nameof(CSharp)}.{nameof(StructDeclaration)}={record.AttributeListCollectionId}:{record.BaseListId}:{record.ConstraintClauseListId}:{record.ConstructorListId}:{record.DocumentationCommentListId}:{record.FieldListId}:{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));
     _constuctorLists           = constuctorLists ?? throw new ArgumentNullException(nameof(constuctorLists));
     _documentationCommentLists = documentationCommentLists ?? throw new ArgumentNullException(nameof(documentationCommentLists));
     _fieldLists                = fieldLists ?? throw new ArgumentNullException(nameof(fieldLists));
     _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.º 11
0
 public MsBuildConditionalContructItemGroupPropertyGroupSectionUpsertService(ICacheService <MsBuildConditionalContructItemGroupPropertyGroupSection> cache, TDbContext database, ILogger <UpsertService <TDbContext, MsBuildConditionalContructItemGroupPropertyGroupSection> > logger, IUpsertUniqueListService <TDbContext, MsBuildConditionalConstruct, MsBuildConditionalConstructList, MsBuildConditionalConstructListAssociation> conditionals, IUpsertUniqueListService <TDbContext, MsBuildItemGroup, MsBuildItemGroupList, MsBuildItemGroupListAssociation> itemGroups, IUpsertUniqueListService <TDbContext, MsBuildPropertyGroup, MsBuildPropertyGroupList, MsBuildPropertyGroupListAssociation> propertyGroups)
     : base(cache, database, logger, database.MsBuildConditionalContructItemGroupPropertyGroupSections)
 {
     CacheKey        = record => $"{nameof(VisualStudio)}.{nameof(MsBuildConditionalContructItemGroupPropertyGroupSection)}={record.MsBuildConditionalConstructListId}:{record.MsBuildItemGroupListId}:{record.MsBuildPropertyGroupListId}";
     _conditionals   = conditionals ?? throw new ArgumentNullException(nameof(conditionals));
     _itemGroups     = itemGroups ?? throw new ArgumentNullException(nameof(itemGroups));
     _propertyGroups = propertyGroups ?? throw new ArgumentNullException(nameof(propertyGroups));
 }
Ejemplo n.º 12
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));
 }
 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.º 14
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.º 16
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.º 20
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.º 21
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));
 }
Ejemplo n.º 22
0
 public BlockUpsertService(ICacheService <Block> cache, TDbContext database, ILogger <UpsertService <TDbContext, Block> > logger, IUpsertUniqueListService <TDbContext, Statement, StatementList, StatementListAssociation> statementLists)
     : base(cache, database, logger, database.Blocks)
 {
     CacheKey        = record => $"{nameof(SourceCode)}.{nameof(Block)}={record.StatementListId}";
     _statementLists = statementLists ?? throw new ArgumentNullException(nameof(statementLists));
 }
Ejemplo n.º 23
0
 public ConstructorBaseInitializerUpsertService(ICacheService <ConstructorBaseInitializer> cache, TDbContext database, ILogger <UpsertService <TDbContext, ConstructorBaseInitializer> > logger, IUpsertUniqueListService <TDbContext, Argument, ArgumentList, ArgumentListAssociation> argumentLists)
     : base(cache, database, logger, database.ConstructorBaseInitializers)
 {
     CacheKey       = record => $"{nameof(SourceCode)}.{nameof(ConstructorBaseInitializer)}={record.ArgumentListId}";
     _argumentLists = argumentLists ?? throw new ArgumentNullException(nameof(argumentLists));
 }