Skip to content

Releases: atidev/ATI.Services.Common

.net 6, Localization, FlowContext

29 Jun 11:09
350195c
Compare
Choose a tag to compare

Upgrade package to .net 6

Add Localization behavior with Accept-Language http header and accept_language rabbit mq header

Add FlowContext behavior by AsyncLocal

You need upgrade your docker file to .net 6 images and you may change timezone in docker file, example%

# change timezone from ETC to local
RUN apt update && apt install tzdata -y
ENV TZ="Europe/Moscow"

v8.5.0

16 Jun 10:01
50931eb
Compare
Choose a tag to compare

What's Changed

Now MeasureAttribute gives opportunity to set a specific longRequestTimeSeconds for every controller action method:

 [Measure(MetricEntity.Rating, longRequestTimeSeconds: 2.5)]
 public async Task<IActionResult> GetRating([FromQuery] RatingQuery query) {
 ....
 }
 
 [Measure(MetricEntity.Rating, longRequestTimeSeconds: 60)]
 public async Task<IActionResult> RecalculateRating() { 
        ... 
 }

Important
If atisu.services.consul and atisu.services.rabbitmq are also used in project them should be updated to v5.7.1 and v3.1.2 or higher respectively.

v9.0.0-rc-1

09 Jun 13:15
Compare
Choose a tag to compare
v9.0.0-rc-1 Pre-release
Pre-release
.net6 and FlowContext

v8.4.1

06 Jun 12:00
503be95
Compare
Choose a tag to compare

What's Changed

  • Support SQL func with custom return type. by @AlexFate in #29

Use ExecuteWithReturnValueAsync(...) overload.

v8.4.0

13 May 10:47
1549609
Compare
Choose a tag to compare
  1. RedisCache.IncrementAsync now returns OperationResult<long>
  2. RedisCache.InsertTypeAsHashAsync, RedisCache.InsertManyFieldsToHashAsync now accept ttl parameter
  3. RedisCache.InsertManyFieldsToManyHashesAsync expires key if Options.TimeToLive != null

v8.3.3

24 Mar 12:39
545c402
Compare
Choose a tag to compare

What's Changed

  • Append options for disabling custom System.Text.Json converters (required on net6). Example:
    "CacheOptions": { "[SectionName]": { ... , "Serializer": 2 } }

v8.3.2

17 Mar 09:27
d62282f
Compare
Choose a tag to compare

fix exception when calling AddServiceVariables() and AddTracing() on startup.cs

Add Headers to proxy

05 Mar 08:43
440dc7a
Compare
Choose a tag to compare

Add ServiceVariables.HeadersToProxy:

 "ServiceVariablesOptions": {
    "Variables": {
      "HeadersToProxy": ["Header1", "Header2"] // HttpRequest headers to proxy to another services
    }
  }

If you want to disable proxy mechanism on some service, set:

"BaseServiceOptions":{
  "ProxyServiceVariablesHeaders": false
}

v8.2.1

21 Feb 19:59
bccb818
Compare
Choose a tag to compare

Add PatchMethods in TracingHttpClientWrapper

v8.1.1

09 Feb 10:12
91f813d
Compare
Choose a tag to compare

fix nullreference exception "binary annotation value can't be null at zipkin4net.Tracers.Zipkin.ZipkinAnnotationVisitor.GetAnnotationType"