Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
添加异常捕获
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderJames committed Dec 7, 2017
1 parent 247a6de commit 4868bac
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 325 deletions.
2 changes: 1 addition & 1 deletion build/version.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>preview-10020</VersionSuffix>
<VersionSuffix>preview-10025</VersionSuffix>
<Version>$(VersionPrefix)-$(VersionSuffix)</Version>
<AssemblyVersion>$(VersionPrefix).0</AssemblyVersion>
<FileVersion>$(VersionPrefix).0</FileVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AspectCore.Abstractions" Version="0.2.4" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
</ItemGroup>

Expand Down
6 changes: 3 additions & 3 deletions src/Shriek.ServiceProxy.Http/Shriek.ServiceProxy.Http.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AspectCore.Core" Version="0.2.4" />
<PackageReference Include="AspectCore.Extensions.DependencyInjection" Version="0.2.4" />
<PackageReference Include="AspectCore.Core" Version="0.2.0" />
<PackageReference Include="AspectCore.Extensions.DependencyInjection" Version="0.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Routing" Version="2.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Routing" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.WebEncoders" Version="2.0.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Shriek.ServiceProxy.Tcp/Shriek.ServiceProxy.Tcp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AspectCore.Extensions.DependencyInjection" Version="0.2.4" />
<PackageReference Include="AspectCore.Extensions.DependencyInjection" Version="0.2.0" />
<PackageReference Include="protobuf-net" Version="2.3.3" />
</ItemGroup>

Expand Down
11 changes: 9 additions & 2 deletions src/Shriek/AppDomainExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,16 @@ public static IEnumerable<Assembly> GetExcutingAssemblies(this AppDomain @this)

public static void UpdateExcutingAssemblies(this AppDomain @this)
{
var assemblies = ReflectionUtil.GetAssemblies(new AssemblyFilter(@this.GetActualDomainPath()));
try
{
var assemblies = ReflectionUtil.GetAssemblies(new AssemblyFilter(@this.GetActualDomainPath()));

excutingAssembiles = @this.GetExcutingAssemblies().Union(assemblies).Union(new[] { Assembly.GetCallingAssembly(), Assembly.GetExecutingAssembly() }).Distinct();
excutingAssembiles = @this.GetExcutingAssemblies().Union(assemblies)
.Union(new[] { Assembly.GetCallingAssembly(), Assembly.GetExecutingAssembly() }).Distinct();
}
catch
{
}
}
}
}
74 changes: 0 additions & 74 deletions test/Shriek.Test/WebApiProxy/GetNotEncodingPlusTest.cs

This file was deleted.

76 changes: 0 additions & 76 deletions test/Shriek.Test/WebApiProxy/GetPropertyTest.cs

This file was deleted.

70 changes: 0 additions & 70 deletions test/Shriek.Test/WebApiProxy/GetStringTest.cs

This file was deleted.

97 changes: 0 additions & 97 deletions test/Shriek.Test/WebApiProxy/PostWithUriAndBodyTest.cs

This file was deleted.

0 comments on commit 4868bac

Please sign in to comment.