From 037375df853c65e5cda519798f107a609beeb4b7 Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Wed, 31 May 2023 08:41:29 +0300 Subject: [PATCH 1/2] Fix a typo in the hangfire document --- docs/en/Background-Jobs-Hangfire.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/Background-Jobs-Hangfire.md b/docs/en/Background-Jobs-Hangfire.md index ca2067980e..1b04be560f 100644 --- a/docs/en/Background-Jobs-Hangfire.md +++ b/docs/en/Background-Jobs-Hangfire.md @@ -52,7 +52,7 @@ After you have installed these NuGet packages, you need to configure your projec var configuration = context.Services.GetConfiguration(); var hostingEnvironment = context.Services.GetHostingEnvironment(); - //... other configarations. + //... other configurations. ConfigureHangfire(context, configuration); } @@ -68,7 +68,7 @@ After you have installed these NuGet packages, you need to configure your projec > You have to configure a storage for Hangfire. -2. If you want to use hangfire's dashboard, you can add `UseHangfireDashboard` call in the `OnApplicationInitialization` method in `Module` class +2. If you want to use hangfire's dashboard, you can add `UseHangfireDashboard` call in the `OnApplicationInitialization` method in `Module` class: ````csharp public override void OnApplicationInitialization(ApplicationInitializationContext context) @@ -84,7 +84,7 @@ After you have installed these NuGet packages, you need to configure your projec ### Specifying Queue -You can use the [`QueueAttribute`](https://docs.hangfire.io/en/latest/background-processing/configuring-queues.html) to specify the queue. +You can use the [`QueueAttribute`](https://docs.hangfire.io/en/latest/background-processing/configuring-queues.html) to specify the queue: ````csharp using System.Threading.Tasks; From 552d966f5c05959c67667b6b0f0d1207b7dc8c0c Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Wed, 31 May 2023 08:44:25 +0300 Subject: [PATCH 2/2] Update Swagger-Integration.md --- docs/en/API/Swagger-Integration.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/docs/en/API/Swagger-Integration.md b/docs/en/API/Swagger-Integration.md index 56ee1de50e..40660eaab9 100644 --- a/docs/en/API/Swagger-Integration.md +++ b/docs/en/API/Swagger-Integration.md @@ -43,7 +43,7 @@ If you want to manually install; ## Configuration -First, we need to use `AddAbpSwaggerGen` extension to configure Swagger in `ConfigureServices` method of our module. +First, we need to use `AddAbpSwaggerGen` extension to configure Swagger in `ConfigureServices` method of our module: ```csharp public override void ConfigureServices(ServiceConfigurationContext context) @@ -63,21 +63,21 @@ public override void ConfigureServices(ServiceConfigurationContext context) } ``` -Then we can use Swagger UI by calling `UseAbpSwaggerUI` method in the `OnApplicationInitialization` method of our module. +Then we can use Swagger UI by calling `UseAbpSwaggerUI` method in the `OnApplicationInitialization` method of our module: ```csharp public override void OnApplicationInitialization(ApplicationInitializationContext context) { var app = context.GetApplicationBuilder(); - //... other configarations. + //... other configurations. app.UseAbpSwaggerUI(options => { options.SwaggerEndpoint("/swagger/v1/swagger.json", "Test API"); }); - //... other configarations. + //... other configurations. } ``` @@ -103,9 +103,7 @@ For non MVC/Tiered applications, we need to configure Swagger with OAUTH to hand > ABP Framework uses OpenIddict by default. To get more information about OpenIddict, check this [documentation](../Modules/OpenIddict.md). - - -To do that, we need to use `AddAbpSwaggerGenWithOAuth` extension to configure Swagger with OAuth issuer and scopes in `ConfigureServices` method of our module. +To do that, we need to use `AddAbpSwaggerGenWithOAuth` extension to configure Swagger with OAuth issuer and scopes in `ConfigureServices` method of our module: ```csharp public override void ConfigureServices(ServiceConfigurationContext context) @@ -130,17 +128,14 @@ public override void ConfigureServices(ServiceConfigurationContext context) } ``` -Then we can use Swagger UI by calling `UseAbpSwaggerUI` method in the `OnApplicationInitialization` method of our module. - -> Do not forget to set `OAuthClientId` and `OAuthClientSecret`. - +Then we can use Swagger UI by calling `UseAbpSwaggerUI` method in the `OnApplicationInitialization` method of our module: ```csharp public override void OnApplicationInitialization(ApplicationInitializationContext context) { var app = context.GetApplicationBuilder(); - //... other configarations. + //... other configurations. app.UseAbpSwaggerUI(options => { @@ -151,6 +146,8 @@ public override void OnApplicationInitialization(ApplicationInitializationContex options.OAuthClientSecret("1q2w3e*"); // clientSecret }); - //... other configarations. + //... other configurations. } -``` \ No newline at end of file +``` + +> Do not forget to set `OAuthClientId` and `OAuthClientSecret`.