项目作者: valeev

项目描述 :
Common libs
高级语言: C#
项目地址: git://github.com/valeev/Common.git
创建时间: 2018-01-07T11:20:14Z
项目社区:https://github.com/valeev/Common

开源协议:MIT License

下载


Common Models

.net framework 4.5+: NuGet
license

.net core: NuGet
license

Common.Models is a free library with common classes for Data layer in microservices. It contains common init classes for repositories and unit of work. Also common base classes for db entities.

UPD: .net core lib doesn’t contain repo interfaces anymore. DbContext in ef core = UoW.

Common Contracts

.net framework 4.5+: NuGet
license
.net core: NuGet
license

Common.Contracts is a free library with common classes for Contracts layer in microservices. It contains abstract request and response classes for building structured service. Also this library contains common interface for all microservices with common method(ServiceInfo) model which should be provided by all services.

Common Contracts for WCF

.net framework 4.5+: NuGet
license

Common.Contracts.WCF is a free library with common classes for Contracts layer in microservices for realization by WCF.

Common WebApi helpers

.net framework 4.5+: NuGet
license

Common.WebApi is a free library with helpers for converting ServiceResponse to proper HTTP status, common library for logging all requests and responses.

For registration logger for all REST requests and responses add next code to App_Start/WebApiConfig.cs to Register method

  1. // Custom log handler for every REST request
  2. config.MessageHandlers.Add(new CustomLogHandler());