Пример #1
0
 /// <summary>
 /// Логгирование удаления
 /// </summary>
 private static async Task <IResultError> ServiceDeleteAction <TId, TDomain>(IRestServiceBase <TId, TDomain> restService, IBoutiqueLogger boutiqueLogger)
     where TDomain : IDomainModel <TId>
     where TId : notnull =>
 await restService.DeleteAsync().
 VoidTaskAsync(result => BoutiqueServiceLog.LogServiceAction <TId, TDomain>(result, boutiqueLogger, ServiceActionType.Delete));
Пример #2
0
 /// <summary>
 /// Логгирование загрузки
 /// </summary>
 private static async Task <IResultError> ServicePostAction <TId, TDomain>(IRestServiceBase <TId, TDomain> restService,
                                                                           IEnumerable <TDomain> domains, IBoutiqueLogger boutiqueLogger)
     where TDomain : IDomainModel <TId>
     where TId : notnull =>
 await restService.PostCollectionAsync(domains).
 VoidTaskAsync(result => BoutiqueServiceLog.LogServiceAction <TId, TDomain>(result, boutiqueLogger, ServiceActionType.Post));