Skip to content

Commit

Permalink
docs(readme): updated readme setup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifenglee-aelf committed Oct 26, 2024
1 parent 403a824 commit 3367979
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,22 @@ Add the following dependency to your project's Module class:
using AElf.ExceptionHandler;

[DependsOn(
typeof(AOPExceptionModule)
typeof(AOPExceptionModule) // Add this line
)]
public class MyTemplateModule : AbpModule
```

When setting up your `HostBuilder` in your `Program.cs` file, add the following line:

```cs
var builder = WebApplication.CreateBuilder(args);
builder.Host
.ConfigureDefaults(args)
.UseAutofac()
.UseAElfExceptionHandler() // Add this line
.UseSerilog();
```

This will automatically register the AOPException module and setup your project for AOP Exception Handling.

## Contributing
Expand Down

0 comments on commit 3367979

Please sign in to comment.