public static ILogsProcessorBuilder StoreInAzureTable(this ILogsProcessorBuilder eventLogProcessor, CloudTableSetup cloudTableSetup, Predicate <FilterLog> predicate = null) { var transactionLogRepository = cloudTableSetup.CreateTransactionLogRepository(); var processor = new TransactionLogProcessor(transactionLogRepository, predicate); eventLogProcessor.Add(processor); return(eventLogProcessor); }
public Task <ILogHandler> GetLogRepositoryHandlerAsync(string tablePrefix) { CloudTableSetup cloudTableSetup = GetCloudTableSetup(tablePrefix); var repo = cloudTableSetup.CreateTransactionLogRepository(); var handler = new TransactionLogRepositoryHandler(repo); return(Task.FromResult(handler as ILogHandler)); }
public static ILogsProcessorBuilder StoreInAzureTable <TEventDto>(this ILogsProcessorBuilder processorBuilder, CloudTableSetup cloudTableSetup, Predicate <EventLog <TEventDto> > predicate = null) where TEventDto : class, new() { var transactionLogRepository = cloudTableSetup.CreateTransactionLogRepository(); var processor = new TransactionLogProcessor <TEventDto>(transactionLogRepository, predicate); processorBuilder.Add(processor); return(processorBuilder); }