File tree Expand file tree Collapse file tree 9 files changed +18
-19
lines changed
Expand file tree Collapse file tree 9 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- current_build=$( grep -o " <Version>0.1 .\(.*\)<\/Version>" ./src/Initium/Initium.csproj | sed ' s/<Version>0.1 .\(.*\)<\/Version>/\1/' )
3+ current_build=$( grep -o " <Version>0.2 .\(.*\)<\/Version>" ./src/Initium/Initium.csproj | sed ' s/<Version>021 .\(.*\)<\/Version>/\1/' )
44new_build=$( printf " %d" $(( 10 #$current_build + 1 )) )
5- sed -i " s/<Version>0.1 .$current_build <\/Version>/<Version>0.1 .$new_build <\/Version>/" ./src/Initium/Initium.csproj
5+ sed -i " s/<Version>0.2 .$current_build <\/Version>/<Version>021 .$new_build <\/Version>/" ./src/Initium/Initium.csproj
66
77# Write the new build to the environment file
8- echo " new_build=0.1 .$new_build " >> $GITHUB_ENV
8+ echo " new_build=0.2 .$new_build " >> $GITHUB_ENV
99
10- echo " Version updated to 0.1 .$new_build "
10+ echo " Version updated to 0.2 .$new_build "
Original file line number Diff line number Diff line change 11using System . Net ;
22using Initium . Exceptions ;
3- using Initium . Filters ;
43using Initium . Infrastructure ;
4+ using Initium . Infrastructure . Filters ;
55using Microsoft . AspNetCore . Mvc ;
66
77namespace Initium . Controllers ;
Original file line number Diff line number Diff line change 11using System . Diagnostics ;
22using System . Net ;
3- using Microsoft . AspNetCore . Mvc . Filters ;
43using Initium . Exceptions ;
5- using Initium . Helpers ;
64using Initium . Infrastructure . Helpers ;
75using Initium . Response ;
6+ using Microsoft . AspNetCore . Mvc . Filters ;
87using Microsoft . Extensions . Logging ;
98
10- namespace Initium . Filters ;
9+ namespace Initium . Infrastructure . Filters ;
1110
1211/// <summary>
1312/// A filter that handles exceptions and transforms them into a standardized <see cref="ApiResponse"/>.
Original file line number Diff line number Diff line change 11using System . Net ;
2- using Microsoft . AspNetCore . Mvc ;
3- using Microsoft . AspNetCore . Mvc . Filters ;
4- using Initium . Helpers ;
2+ using Initium . Infrastructure . Helpers ;
53using Initium . Response ;
64using Initium . Results ;
5+ using Microsoft . AspNetCore . Mvc ;
6+ using Microsoft . AspNetCore . Mvc . Filters ;
77
8- namespace Initium . Filters ;
8+ namespace Initium . Infrastructure . Filters ;
99
1010/// <summary>
1111/// Filter responsible for transforming <see cref="ServiceResult"/> objects into a standardized <see cref="ApiResponse"/>.
Original file line number Diff line number Diff line change 11using Initium . Attributes ;
22using Microsoft . AspNetCore . Mvc . Filters ;
33
4- namespace Initium . Filters ;
4+ namespace Initium . Infrastructure . Filters ;
55
66internal class CustomHeaderFilter : IActionFilter
77{
Original file line number Diff line number Diff line change 44using Initium . Response ;
55using Microsoft . AspNetCore . Mvc . Filters ;
66
7- namespace Initium . Filters ;
7+ namespace Initium . Infrastructure . Filters ;
88
99/// <summary>
1010/// A filter that performs implicit validation on actions using requests derived from <see cref="BaseRequestWithValidator{T}"/>.
Original file line number Diff line number Diff line change 55using Microsoft . Extensions . DependencyInjection ;
66using Microsoft . Extensions . Logging ;
77
8- namespace Initium . Filters ;
8+ namespace Initium . Infrastructure . Filters ;
99
1010public class LoggingFilter : IResultFilter
1111{
Original file line number Diff line number Diff line change 11using System . Net ;
2- using Microsoft . AspNetCore . Mvc . Abstractions ;
3- using Microsoft . AspNetCore . Mvc . Controllers ;
42using Initium . Attributes ;
53using Microsoft . AspNetCore . Http ;
4+ using Microsoft . AspNetCore . Mvc . Abstractions ;
5+ using Microsoft . AspNetCore . Mvc . Controllers ;
66
7- namespace Initium . Helpers ;
7+ namespace Initium . Infrastructure . Helpers ;
88
99/// <summary>
1010/// Provides helper methods for managing API responses and extracting attributes related to API responses.
Original file line number Diff line number Diff line change 11using System . Diagnostics . CodeAnalysis ;
22using System . Net ;
3+ using System . Net . Http . Json ;
34using System . Text . Json . Serialization ;
45using Initium . Exceptions ;
5- using Initium . Infrastructure ;
66using Microsoft . AspNetCore . Mvc ;
77
88namespace Initium . Results ;
You can’t perform that action at this time.
0 commit comments