时间显示格式修改
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Autofac.Extensions.DependencyInjection;
|
||||
using Dicom.Imaging;
|
||||
using EasyCaching.Core;
|
||||
using IRaCIS.Core.Domain.Models;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using IRaCIS.Core.Infra.EFCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Serilog;
|
||||
using System.Collections.Generic;
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using MediatR;
|
||||
using IRaCIS.Core.Application.MediatR.Handlers;
|
||||
using System.Threading.Tasks;
|
||||
using MassTransit;
|
||||
using MassTransit.NewIdProviders;
|
||||
|
||||
namespace IRaCIS.Core.API
|
||||
{
|
||||
@@ -43,6 +38,27 @@ namespace IRaCIS.Core.API
|
||||
})
|
||||
.Build();
|
||||
|
||||
#region Id Generate long类型
|
||||
|
||||
|
||||
//// 创建 IdGeneratorOptions 对象,请在构造函数中输入 WorkerId:
|
||||
//var options = new IdGeneratorOptions(1);
|
||||
////options.WorkerIdBitLength = 10;
|
||||
|
||||
//YitIdHelper.SetIdGenerator(options);
|
||||
|
||||
//var newId = YitIdHelper.NextId();
|
||||
|
||||
#endregion
|
||||
|
||||
NewId.SetProcessIdProvider(new CurrentProcessIdProvider());
|
||||
|
||||
for (int i= 0; i < 10;i++ )
|
||||
{
|
||||
Console.WriteLine(NewId.NextGuid());
|
||||
}
|
||||
|
||||
|
||||
//// Serilog
|
||||
SerilogExtension.AddSerilogSetup(environment, host.Services);
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ namespace IRaCIS.Core.API
|
||||
|
||||
options.AddInterceptors(new QueryWithNoLockDbCommandInterceptor());
|
||||
|
||||
options.UseProjectables();
|
||||
|
||||
options.AddInterceptors(new AuditingInterceptor(configuration.GetSection("ConnectionStrings:RemoteNew").Value));
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user