Skip to content

Releases: atidev/ATI.Services.Common

v13.1.0

29 Sep 08:20
4aefa51
Compare
Choose a tag to compare

Now you can override, or set some parameters of RedisOptions or DatabaseOptions #64

v13.0.1

30 Aug 10:50
35fb1e7
Compare
Choose a tag to compare

What's Changed

  • Microsoft.AspNetCore.Mvc.NewtonsoftJson already included in Swashbuckle.AspNetCore.Newtonsoft. Removing multiple dependecies from Microsoft.AspNetCore.Mvc.NewtonsoftJson by @AlexFate in #62

v13.0.0

25 Aug 12:40
746660f
Compare
Choose a tag to compare

What's Changed

Middleware

How to use:

  • Register
app.UseXssValidation();

Controller attribute

How to use:

  • Add attribute to controller
[XssInputValidationFilter]

Property attribute

How to use:

  • Register
app.UseXssValidation();
  • Add attribute to property
[XssValidate]

Full Changelog: v12.3.0...13.0.0

v12.3.0

21 Aug 14:20
2b38e55
Compare
Choose a tag to compare

What's Changed

How to use:

  • Register
services.AddSql(DataBases.Postgresql)
// or leave empty if want use MsSql 
// services.AddSql()
  • Add config
  • Get PostgresDapper through DI
  • Use it

Full Changelog: v12.2.0...v12.3.0

v12.2.0 Adding new format for display enum

25 Jul 06:36
9c69ba3
Compare
Choose a tag to compare

Now we support new display form for enum at swagger. New format is numeric value and string value, for example '1 = January'.

How to switch on this changes on your code. You need to do this:

services.AddAtiSwagger(c =>
  {
      c.SchemaFilter<EnumKeyValueSchemeFilter>();
  });

v12.1.2

17 Jul 08:34
b9f9a54
Compare
Choose a tag to compare

What's Changed

  • bugfix for method LocaleHelper.TryGetFromString(string, out CultureInfo), it will return false in case of unsupported locale(previously true)

Full Changelog: v12.1.1...v12.1.2

v12.1.1 Quantile for summary metric

14 Apr 14:41
7101c90
Compare
Choose a tag to compare

Quantilies added to Summary metric creation like in prometheus .net example:

Objectives = new[]
            {
                new QuantileEpsilonPair(0.5, 0.05),
                new QuantileEpsilonPair(0.9, 0.05),
                new QuantileEpsilonPair(0.95, 0.01),
                new QuantileEpsilonPair(0.99, 0.005),
            }

Them were lost during prometheus .net library update from v2 to v3.

v12.1.0 Tracing propagation

12 Apr 13:56
6a18c39
Compare
Choose a tag to compare

Flag propagateActivity was added to To MetricsHttpClientConfig. It allows to turn off tracing headers propagation in http requests

v12.0.0 Metrics update

12 Apr 08:31
9e8f6ff
Compare
Choose a tag to compare
  • updated prometheus-net from 2.1.3 to 8.0.0;

  • updated Swashbuckle.AspNetCore and Swashbuckle.AspNetCore.Newtonsoft from 5.5.1 to 6.5.0;

  • removed zipkin4net;

  • removed all tracing code, including TracingInitializer, TracingOptions, AddTracing, UseTracing, ZipkinManager, TracingMiddleware;

  • getTracingCallback parameter was removed from MetricsFactory (prev. MetricsTracingFactory) methods;

  • renamed classes, methods, fields that contained Tracing in their names;

  • DefaultLongRequestTime and MetricsServiceName are now part of MetricsOptions class;

  • MetricsInitializer now has InitializeOrder.First attribute;

  • MetricsTimer class now uses SystemTextJson for logging;

  • SystemMetricsCollector was replaced by default metrics, provided by prometheus-net library. Metric names changes are:

    start_time -> process_start_time_seconds
    cpu_seconds_total -> process_cpu_seconds_total
    virtual_bytes -> process_virtual_memory_bytes
    working_set -> process_working_set_bytes
    private_bytes -> process_private_memory_bytes
    open_handles -> process_open_handles
    num_threads -> process_num_threads
    totalmemory -> dotnet_total_memory_bytes
    gc_collect_count -> dotnet_collection_count_total

v11.5.0

24 Mar 13:19
1f35948
Compare
Choose a tag to compare

Add public OperationResult(OperationError operationError, Dictionary<string, object> details)