Add project files.
This commit is contained in:
		| @@ -0,0 +1,9 @@ | ||||
| using Core.Blueprint.Domain.Entities; | ||||
|  | ||||
| namespace Core.Blueprint.DAL.Infrastructure.Contracts | ||||
| { | ||||
|     public interface IBlueprintRepository : IRepositoryIdentityBase<BlueprintCollection> | ||||
|     { | ||||
|  | ||||
|     } | ||||
| } | ||||
							
								
								
									
										13
									
								
								Core.Blueprint.DAL.Infrastrcture/Contracts/IMongoContext.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								Core.Blueprint.DAL.Infrastrcture/Contracts/IMongoContext.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| using MongoDB.Driver; | ||||
|  | ||||
| namespace Core.Blueprint.DAL.Infrastructure.Contracts | ||||
| { | ||||
|     public interface IMongoContext | ||||
|     { | ||||
|          | ||||
|         IMongoClient _client { get; } | ||||
|         IMongoDatabase Database { get; } | ||||
|         void DropCollection<TDocument>(string partitionKey = null) where TDocument : class; | ||||
|         void SetUpDatabase(string database); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,11 @@ | ||||
| using Core.Blueprint.Domain.Dtos; | ||||
|  | ||||
| namespace Core.Blueprint.DAL.Infrastructure.Contracts | ||||
| { | ||||
|     public interface IProxyBlobStorage | ||||
|     { | ||||
|         IAsyncEnumerable<ImageUrlDto> ListAllItemsAsync(); | ||||
|         Task<ImageUrlDto> GetFirstImageUrlAsync(); | ||||
|         Task<ImageUrlDto> GetUploadUrl(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,11 @@ | ||||
| namespace Core.Blueprint.DAL.Infrastructure.Contracts | ||||
| { | ||||
|     public interface IRepositoryBase<T> where T : class | ||||
|     { | ||||
|         ValueTask<T> GetByIdAsync(string id); | ||||
|         ValueTask<IQueryable<T>> GetAllAsync(); | ||||
|         ValueTask<T> CreateAsync(T blueprint); | ||||
|         Task<bool> UpdateAsync(string id, T blueprint); | ||||
|         Task<bool> DeleteAsync(string id); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,9 @@ | ||||
| using Core.Blueprint.Domain.Entities; | ||||
|  | ||||
| namespace Core.Blueprint.DAL.Infrastructure.Contracts | ||||
| { | ||||
|     public interface IRepositoryIdentityBase<T> : IRepositoryBase<T> where T : AbsEntity | ||||
|     { | ||||
|         ValueTask<T> GetByIdAsync(Guid id) => GetByIdAsync(id.ToString()); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,11 @@ | ||||
| using Core.Blueprint.Domain.Dtos; | ||||
|  | ||||
| namespace Core.Blueprint.DAL.Infrastructure.Contracts | ||||
| { | ||||
|     public interface ISampleImageRepository | ||||
|     { | ||||
|         IAsyncEnumerable<ImageUrlDto> GetAllImagesUrls(); | ||||
|         Task<ImageUrlDto> GetFirstImageUrl(); | ||||
|         Task<ImageUrlDto> GetUploadUrl(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,8 @@ | ||||
| using Core.Blueprint.Domain.Entities; | ||||
|  | ||||
| namespace Core.Blueprint.DAL.Infrastructure.Contracts | ||||
| { | ||||
|     public interface ISampleItemRepository : IRepositoryIdentityBase<SampleItem> | ||||
|     { | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,11 @@ | ||||
| using Core.Blueprint.Domain.Entities; | ||||
|  | ||||
| namespace Core.Blueprint.DAL.Infrastructure.Contracts | ||||
| { | ||||
|     public interface ISecretRepository | ||||
|     { | ||||
|         Task<Secret> GetSecret(string secretName, CancellationToken cancellationToken); | ||||
|         Task SetSecret(string secretName, string secretValue, CancellationToken cancellationToken); | ||||
|         Task RemoveSecret(string secretName, CancellationToken cancellationToken); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Sergio Matias Urquin
					Sergio Matias Urquin