Skip to content

Commit

Permalink
Merge pull request #1035 from colinin/global-usings
Browse files Browse the repository at this point in the history
feat(single): use GlobalUsings
  • Loading branch information
colinin authored Nov 22, 2024
2 parents 913fa7a + 2804fa4 commit 913ebbd
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 222 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
global using Elsa;
global using Elsa.Options;
global using LINGYUN.Abp.Account;
global using LINGYUN.Abp.Account.Templates;
global using LINGYUN.Abp.Aliyun.Localization;
global using LINGYUN.Abp.Aliyun.SettingManagement;
global using LINGYUN.Abp.AspNetCore.HttpOverrides;
global using LINGYUN.Abp.AspNetCore.Mvc.Idempotent.Wrapper;
global using LINGYUN.Abp.AspNetCore.Mvc.Localization;
global using LINGYUN.Abp.AspNetCore.Mvc.Wrapper;
global using LINGYUN.Abp.Auditing;
global using LINGYUN.Abp.AuditLogging.EntityFrameworkCore;
global using LINGYUN.Abp.Authentication.QQ;
global using LINGYUN.Abp.Authentication.WeChat;
global using LINGYUN.Abp.Authorization.OrganizationUnits;
global using LINGYUN.Abp.BackgroundTasks;
global using LINGYUN.Abp.BackgroundTasks.Activities;
global using LINGYUN.Abp.BackgroundTasks.DistributedLocking;
global using LINGYUN.Abp.BackgroundTasks.EventBus;
global using LINGYUN.Abp.BackgroundTasks.ExceptionHandling;
global using LINGYUN.Abp.BackgroundTasks.Jobs;
global using LINGYUN.Abp.BackgroundTasks.Notifications;
global using LINGYUN.Abp.BackgroundTasks.Quartz;
global using LINGYUN.Abp.CachingManagement;
global using LINGYUN.Abp.CachingManagement.StackExchangeRedis;
global using LINGYUN.Abp.Dapr.Client;
global using LINGYUN.Abp.Data.DbMigrator;
global using LINGYUN.Abp.DataProtectionManagement;
global using LINGYUN.Abp.DataProtectionManagement.EntityFrameworkCore;
global using LINGYUN.Abp.Demo;
global using LINGYUN.Abp.Demo.Books;
global using LINGYUN.Abp.Demo.EntityFrameworkCore;
global using LINGYUN.Abp.Demo.Localization;
global using LINGYUN.Abp.Elsa;
global using LINGYUN.Abp.Elsa.Activities;
global using LINGYUN.Abp.Elsa.EntityFrameworkCore;
global using LINGYUN.Abp.Elsa.EntityFrameworkCore.MySql;
global using LINGYUN.Abp.ExceptionHandling;
global using LINGYUN.Abp.ExceptionHandling.Emailing;
global using LINGYUN.Abp.Exporter.MiniExcel;
global using LINGYUN.Abp.FeatureManagement;
global using LINGYUN.Abp.FeatureManagement.HttpApi;
global using LINGYUN.Abp.Features.LimitValidation;
global using LINGYUN.Abp.Features.LimitValidation.Redis.Client;
global using LINGYUN.Abp.Http.Client.Wrapper;
global using LINGYUN.Abp.Idempotent;
global using LINGYUN.Abp.Identity;
global using LINGYUN.Abp.Identity.AspNetCore.Session;
global using LINGYUN.Abp.Identity.EntityFrameworkCore;
global using LINGYUN.Abp.Identity.Notifications;
global using LINGYUN.Abp.Identity.OrganizaztionUnits;
global using LINGYUN.Abp.Identity.Session;
global using LINGYUN.Abp.Identity.Session.AspNetCore;
global using LINGYUN.Abp.Identity.WeChat;
global using LINGYUN.Abp.IdentityServer.IdentityResources;
global using LINGYUN.Abp.IdGenerator;
global using LINGYUN.Abp.IM.SignalR;
global using LINGYUN.Abp.Localization.CultureMap;
global using LINGYUN.Abp.Localization.Persistence;
global using LINGYUN.Abp.LocalizationManagement;
global using LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore;
global using LINGYUN.Abp.MessageService;
global using LINGYUN.Abp.MessageService.EntityFrameworkCore;
global using LINGYUN.Abp.MultiTenancy.Editions;
global using LINGYUN.Abp.Notifications;
global using LINGYUN.Abp.Notifications.Common;
global using LINGYUN.Abp.Notifications.Emailing;
global using LINGYUN.Abp.Notifications.EntityFrameworkCore;
global using LINGYUN.Abp.Notifications.SignalR;
global using LINGYUN.Abp.Notifications.WeChat.MiniProgram;
global using LINGYUN.Abp.OpenApi.Authorization;
global using LINGYUN.Abp.OpenIddict;
global using LINGYUN.Abp.OpenIddict.AspNetCore;
global using LINGYUN.Abp.OpenIddict.AspNetCore.Session;
global using LINGYUN.Abp.OpenIddict.LinkUser;
global using LINGYUN.Abp.OpenIddict.Permissions;
global using LINGYUN.Abp.OpenIddict.Portal;
global using LINGYUN.Abp.OpenIddict.Sms;
global using LINGYUN.Abp.OpenIddict.WeChat;
global using LINGYUN.Abp.OpenIddict.WeChat.Work;
global using LINGYUN.Abp.OssManagement;
global using LINGYUN.Abp.OssManagement.FileSystem;
global using LINGYUN.Abp.OssManagement.Imaging;
global using LINGYUN.Abp.OssManagement.SettingManagement;
global using LINGYUN.Abp.PermissionManagement;
global using LINGYUN.Abp.PermissionManagement.HttpApi;
global using LINGYUN.Abp.PermissionManagement.OrganizationUnits;
global using LINGYUN.Abp.Saas;
global using LINGYUN.Abp.Saas.EntityFrameworkCore;
global using LINGYUN.Abp.Serilog.Enrichers.Application;
global using LINGYUN.Abp.Serilog.Enrichers.UniqueId;
global using LINGYUN.Abp.SettingManagement;
global using LINGYUN.Abp.Sms.Aliyun;
global using LINGYUN.Abp.TaskManagement;
global using LINGYUN.Abp.TaskManagement.EntityFrameworkCore;
global using LINGYUN.Abp.Tencent.Localization;
global using LINGYUN.Abp.Tencent.QQ;
global using LINGYUN.Abp.Tencent.SettingManagement;
global using LINGYUN.Abp.TextTemplating;
global using LINGYUN.Abp.TextTemplating.EntityFrameworkCore;
global using LINGYUN.Abp.UI.Navigation;
global using LINGYUN.Abp.UI.Navigation.VueVbenAdmin;
global using LINGYUN.Abp.Webhooks;
global using LINGYUN.Abp.Webhooks.EventBus;
global using LINGYUN.Abp.Webhooks.Identity;
global using LINGYUN.Abp.Webhooks.Saas;
global using LINGYUN.Abp.WebhooksManagement;
global using LINGYUN.Abp.WebhooksManagement.EntityFrameworkCore;
global using LINGYUN.Abp.WeChat.Common.Messages.Handlers;
global using LINGYUN.Abp.WeChat.Localization;
global using LINGYUN.Abp.WeChat.MiniProgram;
global using LINGYUN.Abp.WeChat.Official;
global using LINGYUN.Abp.WeChat.Official.Handlers;
global using LINGYUN.Abp.WeChat.SettingManagement;
global using LINGYUN.Abp.WeChat.Work;
global using LINGYUN.Abp.WeChat.Work.Handlers;
global using LINGYUN.Abp.Wrapper;
global using LINGYUN.Platform;
global using LINGYUN.Platform.EntityFrameworkCore;
global using LINGYUN.Platform.HttpApi;
global using LINGYUN.Platform.Localization;
global using LINGYUN.Platform.Settings.VueVbenAdmin;
global using LINGYUN.Platform.Theme.VueVbenAdmin;
global using LY.MicroService.Applications.Single.Authentication;
global using LY.MicroService.Applications.Single.EntityFrameworkCore;
global using LY.MicroService.Applications.Single.IdentityResources;
global using Medallion.Threading;
global using Medallion.Threading.Redis;
global using Microsoft.AspNetCore.Authentication.Cookies;
global using Microsoft.AspNetCore.Authentication.JwtBearer;
global using Microsoft.AspNetCore.Cors;
global using Microsoft.AspNetCore.DataProtection;
global using Microsoft.AspNetCore.Identity;
global using Microsoft.AspNetCore.Server.Kestrel.Core;
global using Microsoft.Extensions.Caching.StackExchangeRedis;
global using Microsoft.IdentityModel.Logging;
global using Microsoft.OpenApi.Models;
global using MiniExcelLibs.Attributes;
global using OpenIddict.Server;
global using OpenIddict.Server.AspNetCore;
global using Quartz;
global using StackExchange.Redis;
global using System.Security.Cryptography;
global using System.Security.Cryptography.X509Certificates;
global using System.Text.Encodings.Web;
global using System.Text.Unicode;
global using Volo.Abp;
global using Volo.Abp.Account.Web;
global using Volo.Abp.AspNetCore.Authentication.JwtBearer;
global using Volo.Abp.AspNetCore.Mvc;
global using Volo.Abp.AspNetCore.Mvc.AntiForgery;
global using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
global using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy;
global using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic;
global using Volo.Abp.AspNetCore.Serilog;
global using Volo.Abp.Auditing;
global using Volo.Abp.Authorization.Permissions;
global using Volo.Abp.Autofac;
global using Volo.Abp.BlobStoring;
global using Volo.Abp.BlobStoring.FileSystem;
global using Volo.Abp.Caching;
global using Volo.Abp.Caching.StackExchangeRedis;
global using Volo.Abp.Data;
global using Volo.Abp.EntityFrameworkCore;
global using Volo.Abp.EntityFrameworkCore.MySQL;
global using Volo.Abp.EventBus;
global using Volo.Abp.FeatureManagement;
global using Volo.Abp.FeatureManagement.EntityFrameworkCore;
global using Volo.Abp.Features;
global using Volo.Abp.GlobalFeatures;
global using Volo.Abp.Http.Client;
global using Volo.Abp.Identity.Localization;
global using Volo.Abp.IdentityServer;
global using Volo.Abp.IdentityServer.Localization;
global using Volo.Abp.Imaging;
global using Volo.Abp.Json;
global using Volo.Abp.Json.SystemTextJson;
global using Volo.Abp.Localization;
global using Volo.Abp.Modularity;
global using Volo.Abp.MultiTenancy;
global using Volo.Abp.OpenIddict;
global using Volo.Abp.OpenIddict.EntityFrameworkCore;
global using Volo.Abp.OpenIddict.Localization;
global using Volo.Abp.PermissionManagement;
global using Volo.Abp.PermissionManagement.EntityFrameworkCore;
global using Volo.Abp.PermissionManagement.Identity;
global using Volo.Abp.PermissionManagement.OpenIddict;
global using Volo.Abp.Quartz;
global using Volo.Abp.Security.Claims;
global using Volo.Abp.SettingManagement;
global using Volo.Abp.SettingManagement.EntityFrameworkCore;
global using Volo.Abp.SettingManagement.Localization;
global using Volo.Abp.Threading;
global using Volo.Abp.UI.Navigation.Urls;
global using Volo.Abp.VirtualFileSystem;
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>LY.MicroService.Applications.Single</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -48,6 +49,7 @@
<PackageReference Include="Volo.Abp.PermissionManagement.HttpApi" />
<PackageReference Include="Volo.Abp.Identity.AspNetCore" />
<PackageReference Include="Volo.Abp.Imaging.ImageSharp" />
<PackageReference Include="Volo.Abp.MailKit" />
<!--<PackageReference Include="Volo.Abp.IdentityServer.EntityFrameworkCore" />-->
<PackageReference Include="Volo.Abp.SettingManagement.EntityFrameworkCore" />
<PackageReference Include="Volo.Abp.PermissionManagement.EntityFrameworkCore" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,90 +1,4 @@
using Elsa;
using Elsa.Options;
using LINGYUN.Abp.Aliyun.Localization;
using LINGYUN.Abp.BackgroundTasks;
using LINGYUN.Abp.DataProtectionManagement;
using LINGYUN.Abp.Demo.Books;
using LINGYUN.Abp.Demo.Localization;
using LINGYUN.Abp.ExceptionHandling;
using LINGYUN.Abp.ExceptionHandling.Emailing;
using LINGYUN.Abp.Exporter.MiniExcel;
using LINGYUN.Abp.Idempotent;
using LINGYUN.Abp.Identity.Session;
using LINGYUN.Abp.IdentityServer.IdentityResources;
using LINGYUN.Abp.Localization.CultureMap;
using LINGYUN.Abp.Notifications;
using LINGYUN.Abp.OpenIddict.AspNetCore.Session;
using LINGYUN.Abp.OpenIddict.LinkUser;
using LINGYUN.Abp.OpenIddict.Permissions;
using LINGYUN.Abp.OpenIddict.Portal;
using LINGYUN.Abp.OpenIddict.Sms;
using LINGYUN.Abp.OpenIddict.WeChat;
using LINGYUN.Abp.Saas;
using LINGYUN.Abp.Serilog.Enrichers.Application;
using LINGYUN.Abp.Serilog.Enrichers.UniqueId;
using LINGYUN.Abp.Tencent.Localization;
using LINGYUN.Abp.TextTemplating;
using LINGYUN.Abp.WebhooksManagement;
using LINGYUN.Abp.WeChat.Common.Messages.Handlers;
using LINGYUN.Abp.WeChat.Localization;
using LINGYUN.Abp.WeChat.Work;
using LINGYUN.Abp.Wrapper;
using LINGYUN.Platform.Localization;
using LY.MicroService.Applications.Single.Authentication;
using LY.MicroService.Applications.Single.IdentityResources;
using Medallion.Threading;
using Medallion.Threading.Redis;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.Extensions.Caching.StackExchangeRedis;
using Microsoft.IdentityModel.Logging;
using Microsoft.OpenApi.Models;
using MiniExcelLibs.Attributes;
using OpenIddict.Server;
using OpenIddict.Server.AspNetCore;
using Quartz;
using StackExchange.Redis;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Text.Encodings.Web;
using System.Text.Unicode;
using Volo.Abp;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc.AntiForgery;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
using Volo.Abp.Auditing;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.BlobStoring;
using Volo.Abp.BlobStoring.FileSystem;
using Volo.Abp.BlobStoring.Minio;
using Volo.Abp.Caching;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.FeatureManagement;
using Volo.Abp.Features;
using Volo.Abp.GlobalFeatures;
using Volo.Abp.Http.Client;
using Volo.Abp.Identity.Localization;
using Volo.Abp.IdentityServer;
using Volo.Abp.IdentityServer.Localization;
using Volo.Abp.Json;
using Volo.Abp.Json.SystemTextJson;
using Volo.Abp.Localization;
using Volo.Abp.MultiTenancy;
using Volo.Abp.OpenIddict;
using Volo.Abp.OpenIddict.Localization;
using Volo.Abp.PermissionManagement;
using Volo.Abp.Quartz;
using Volo.Abp.Security.Claims;
using Volo.Abp.SettingManagement;
using Volo.Abp.SettingManagement.Localization;
using Volo.Abp.Threading;
using Volo.Abp.UI.Navigation.Urls;
using Volo.Abp.VirtualFileSystem;
using VoloAbpExceptionHandlingOptions = Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingOptions;
using VoloAbpExceptionHandlingOptions = Volo.Abp.AspNetCore.ExceptionHandling.AbpExceptionHandlingOptions;

namespace LY.MicroService.Applications.Single;

Expand Down
Loading

0 comments on commit 913ebbd

Please sign in to comment.