Hi,
We are looking to use a CI/CD service for our aspnetzero project (.net core & angular) Can anyone suggest any solutions that integrate seamlessly with .net core?
Thanks in advance
Thanks you. That did the trick
I have the following code and I am getting the following error when I call a method of the AppService1: MyProject.Application.Extended.Settings.AppService1' is waiting for the following dependencies:
public interface IGenericCache : ITransientDependency
{
}
public interface IGenericCache<TEntity, TModelDto, TPrimaryKey>
: IGenericCache where TEntity : class, IEntity<TPrimaryKey>
{
TModelDto Get(TPrimaryKey key);
IList<TModelDto> GetAll();
}
public class GenericCache<TEntity, TModelDto, TPrimaryKey> : IGenericCache<TEntity, TModelDto, TPrimaryKey>
where TEntity : class, IEntity<TPrimaryKey>
{
public readonly IList<TModelDto> CacheItemsAsList;
public readonly ConcurrentDictionary<TPrimaryKey, TModelDto> CacheItems;
//-------------------------------------------------------------------------------------
public GenericCache(IObjectMapper objectMapper,
IRepository<TEntity, TPrimaryKey> repo)
{
var tempList = new List<TModelDto>();
CacheItems = new ConcurrentDictionary<TPrimaryKey, TModelDto>();
IList<TEntity> dbEntities = repo.GetAllList();
if (dbEntities != null)
{
foreach (var dbEntity in dbEntities)
{
TModelDto mappedItem = objectMapper.Map<TModelDto>(dbEntity);
CacheItems.TryAdd(dbEntity.Id, mappedItem);
tempList.Add(mappedItem);
}
}
CacheItemsAsList = tempList;
}
//-------------------------------------------------------------------------------------
public IList<TModelDto> GetAll()
{
return CacheItemsAsList;
}
//-------------------------------------------------------------------------------------
public TModelDto Get(TPrimaryKey key)
{
CacheItems.TryGetValue(key, out TModelDto modelDto);
return modelDto;
}
}
public class AppService1 : KYCAppServiceBase
{
private readonly GenericCache<Country, CountryDto, int> genericCache;
//-----------------------------------------------------------------------------------------------------------------------
public AppService1(GenericCache<Country, CountryDto, int> genericCache)
{
this.genericCache = genericCache;
}
Can anyone help?
Thanks in advance
Hi,
I dont see any actual code rather than method signatures. It does not show how it is actually implemented rather than some snippets.
Hi,
Is there any full example using the EntityCache. The one in the documentation is not full as it contains only the signature of the cache and not how it is implemented (PersonCache).
Also why the PersonCache implemented ITransientDependency. I thought this must be singleton
Thanks in advance
What about filtering? Is there any generic solution to that?
I read it but I dont see filtering logic. Also for pagination I can't find any example for angular solution and I think 95% of software projects that use datatables use this functionality.
Server side pagination based on sorting and filtering. Does aspnetboilerplate support it?
Hi,
Does aspnet zero supports server side pagination?
Thanks in advance
Yes correct