Move using statements to globalusing file
This commit is contained in:
		
							parent
							
								
									5fd90e8cb6
								
							
						
					
					
						commit
						9d73669d86
					
				| @ -1,5 +1,5 @@ | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF | ||||
| { | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; | ||||
| 
 | ||||
| public enum EventStateEnum | ||||
| { | ||||
|     NotPublished = 0, | ||||
| @ -7,4 +7,4 @@ | ||||
|     Published = 2, | ||||
|     PublishedFailed = 3 | ||||
| } | ||||
| } | ||||
| 
 | ||||
|  | ||||
| @ -1,8 +1,5 @@ | ||||
| using Microsoft.EntityFrameworkCore; | ||||
| using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; | ||||
| 
 | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF | ||||
| { | ||||
| public class IntegrationEventLogContext : DbContext | ||||
| { | ||||
|     public IntegrationEventLogContext(DbContextOptions<IntegrationEventLogContext> options) : base(options) | ||||
| @ -42,4 +39,3 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF | ||||
| 
 | ||||
|     } | ||||
| } | ||||
| } | ||||
|  | ||||
| @ -1,11 +1,5 @@ | ||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; | ||||
| using System; | ||||
| using System.Text.Json; | ||||
| using System.ComponentModel.DataAnnotations.Schema; | ||||
| using System.Linq; | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF; | ||||
| 
 | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF | ||||
| { | ||||
| public class IntegrationEventLogEntry | ||||
| { | ||||
|     private IntegrationEventLogEntry() { } | ||||
| @ -40,4 +34,3 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF | ||||
|         return this; | ||||
|     } | ||||
| } | ||||
| } | ||||
|  | ||||
| @ -1,11 +1,5 @@ | ||||
| using Microsoft.EntityFrameworkCore.Storage; | ||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Threading.Tasks; | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Services; | ||||
| 
 | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Services | ||||
| { | ||||
| public interface IIntegrationEventLogService | ||||
| { | ||||
|     Task<IEnumerable<IntegrationEventLogEntry>> RetrieveEventLogsPendingToPublishAsync(Guid transactionId); | ||||
| @ -14,4 +8,3 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Servi | ||||
|     Task MarkEventAsInProgressAsync(Guid eventId); | ||||
|     Task MarkEventAsFailedAsync(Guid eventId); | ||||
| } | ||||
| } | ||||
|  | ||||
| @ -1,15 +1,5 @@ | ||||
| using Microsoft.EntityFrameworkCore; | ||||
| using Microsoft.EntityFrameworkCore.Storage; | ||||
| using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Data.Common; | ||||
| using System.Linq; | ||||
| using System.Reflection; | ||||
| using System.Threading.Tasks; | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Services; | ||||
| 
 | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Services | ||||
| { | ||||
| public class IntegrationEventLogService : IIntegrationEventLogService, IDisposable | ||||
| { | ||||
|     private readonly IntegrationEventLogContext _integrationEventLogContext; | ||||
| @ -107,4 +97,3 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Servi | ||||
|         GC.SuppressFinalize(this); | ||||
|     } | ||||
| } | ||||
| } | ||||
|  | ||||
| @ -1,9 +1,5 @@ | ||||
| using Microsoft.EntityFrameworkCore; | ||||
| using System; | ||||
| using System.Threading.Tasks; | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Utilities; | ||||
| 
 | ||||
| namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Utilities | ||||
| { | ||||
| public class ResilientTransaction | ||||
| { | ||||
|     private DbContext _context; | ||||
| @ -28,4 +24,3 @@ namespace Microsoft.eShopOnContainers.BuildingBlocks.IntegrationEventLogEF.Utili | ||||
|         }); | ||||
|     } | ||||
| } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user