public StackRepository(ExceptionlessElasticConfiguration configuration, IEventRepository eventRepository, IValidator <Stack> validator) : base(configuration.Stacks.Stack, validator) { _eventRepository = eventRepository; DocumentsChanging.AddHandler(OnDocumentChangingAsync); FieldsRequiredForRemove.Add(ElasticType.GetFieldName(s => s.SignatureHash)); }
public EventRepository(ExceptionlessElasticConfiguration configuration, IValidator <PersistentEvent> validator) : base(configuration.Events.Event, validator) { DisableCache(); BatchNotifications = true; DefaultExcludes.Add(EventIndexType.Fields.IDX); FieldsRequiredForRemove.Add(EventIndexType.Fields.Date); }
public EventRepository(ExceptionlessElasticConfiguration configuration, IValidator <PersistentEvent> validator) : base(configuration.Events.Event, validator) { DisableCache(); BatchNotifications = true; DefaultExcludes.Add(ElasticType.GetFieldName(e => e.Idx)); DefaultExcludes.Add(EventIndexType.Alias.IpAddress); DefaultExcludes.Add("error"); FieldsRequiredForRemove.Add(ElasticType.GetFieldName(e => e.Date)); }
protected ElasticRepositoryBase(IIndexType <T> indexType, IValidator <T> validator = null) : base(indexType) { _validator = validator; _messagePublisher = indexType.Configuration.MessageBus; NotificationsEnabled = _messagePublisher != null; if (HasCreatedDate) { var propertyName = _client.Infer.PropertyName(typeof(T).GetMember(nameof(IHaveCreatedDate.CreatedUtc)).Single()); FieldsRequiredForRemove.Add(propertyName); } }
public RepositoryOwnedByOrganization(IIndexType <T> indexType, IValidator <T> validator) : base(indexType, validator) { FieldsRequiredForRemove.Add("organization_id"); DocumentsAdded.AddHandler(OnDocumentsAdded); }
public RepositoryOwnedByOrganizationAndProject(IIndexType <T> indexType, IValidator <T> validator, IOptions <AppOptions> options) : base(indexType, validator, options) { FieldsRequiredForRemove.Add("project_id"); }