-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from freshncp/v2.x
反射调用改为委托调用;拦截器类型改为对象传入
- Loading branch information
Showing
43 changed files
with
1,097 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
name: .NET Core | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 2.2.108 | ||
dotnet-version: 3.1.101 | ||
- name: build | ||
run: make build | ||
- name: test | ||
run: make test | ||
- name: build | ||
run: make rebuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -330,5 +330,5 @@ ASALocalRun/ | |
.mfractor/ | ||
|
||
# Custom | ||
nuget/*/lib/ | ||
.vscode/ | ||
.DS_Store | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,12 @@ | ||
all: test pack | ||
test: | ||
dotnet test `pwd`/src/DynamicProxyTests/ | ||
dotnet test `pwd`/src/Larva.DynamicProxy.Tests/ | ||
|
||
pack: rebuild | ||
rm -rf `pwd`/nuget/.DS_Store | ||
rm -rf `pwd`/nuget/*/.DS_Store | ||
rm -rf `pwd`/nuget/*/*/.DS_Store | ||
rm -rf `pwd`/nuget/*/lib/*/*.pdb | ||
rm -rf `pwd`/nuget/*/lib/*/*.json | ||
nuget pack -OutputDirectory `pwd`/packages/ `pwd`/nuget/Larva.DynamicProxy/Larva.DynamicProxy.nuspec | ||
pack: build | ||
mkdir -p `pwd`/packages | ||
dotnet pack -c Release `pwd`/src/Larva.DynamicProxy/ | ||
mv `pwd`/src/Larva.DynamicProxy/bin/Release/*.nupkg `pwd`/packages/ | ||
|
||
rebuild: clean build | ||
|
||
clean: | ||
rm -rf `pwd`/nuget/.DS_Store | ||
rm -rf `pwd`/nuget/*/.DS_Store | ||
rm -rf `pwd`/nuget/*/*/.DS_Store | ||
rm -rf `pwd`/nuget/*/lib/* | ||
|
||
build: build-1_6 build-2_0 build-netFramework | ||
|
||
build-1_6: | ||
dotnet build -c Release -f 'netstandard1.6' -o `pwd`/nuget/Larva.DynamicProxy/lib/netstandard1.6/ `pwd`/src/Larva.DynamicProxy/ | ||
|
||
build-2_0: | ||
dotnet build -c Release -f 'netstandard2.0' -o `pwd`/nuget/Larva.DynamicProxy/lib/netstandard2.0/ `pwd`/src/Larva.DynamicProxy/ | ||
|
||
build-netFramework: | ||
msbuild `pwd`/src/Larva.DynamicProxy/Larva.DynamicProxy.csproj -r -noConLog -t:Rebuild -p:Configuration=Release -p:TargetFramework=net45 -p:OutputPath=`pwd`/nuget/Larva.DynamicProxy/lib/net45/ | ||
build: | ||
dotnet build -c Release `pwd`/src/Larva.DynamicProxy/ | ||
dotnet build -c Release `pwd`/src/Larva.DynamicProxy.Tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/Larva.DynamicProxy.Tests/Application/IUserLoginService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace Larva.DynamicProxy.Tests.Application | ||
{ | ||
public interface IUserLoginService | ||
{ | ||
bool Login(string userName, string password, int sault, out bool accountExists, ref int retryCount, out UserDto userDto); | ||
|
||
Task<bool> LoginAsync(string userName, string password); | ||
|
||
string UserName { get; } | ||
|
||
int Sault { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Larva.DynamicProxy.Tests.Application | ||
{ | ||
public class UserDto | ||
{ | ||
public string RealName { get; set; } | ||
|
||
public override string ToString() | ||
{ | ||
return $"UserDto:RealName={RealName}"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.