Skip to content

Commit

Permalink
add the annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiningRush committed Jan 30, 2018
1 parent 1e2646f commit 0176d66
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ServiceAnt.IocInstaller.Autofac/ServiceAntModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ServiceAntModule : Module
/// <summary>
/// Constructor
/// </summary>
/// <param name="handlerAssemblies"> the assemblies which containg handler, those will be register to container</param>
/// <param name="handlerAssemblies"> the assemblies which containg handlers, those will be registered to container</param>
public ServiceAntModule(params System.Reflection.Assembly[] handlerAssemblies)
{
_handlerAssemblies = handlerAssemblies;
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceAnt.IocInstaller.Castle/ServiceAntInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ServiceAntInstaller : IWindsorInstaller
/// <summary>
/// Constructor
/// </summary>
/// <param name="handlerAssemblies"> the assemblies which containg handler, those will be register to container</param>
/// <param name="handlerAssemblies"> the assemblies which containg handlers, those will be registered to container</param>
public ServiceAntInstaller(params Assembly[] handlerAssemblies)
{
_handlerAssemblies = handlerAssemblies;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@

namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Extensions for service collention
/// </summary>
public static class ServiceCollectionExtensions
{
private static System.Reflection.Assembly[] _handlerAssemblies;

/// <summary>
/// Add serviceant to your dotnet core ioc
/// </summary>
/// <param name="this"></param>
/// <param name="handlerAssemblies">the assemblies which containg handlers, those will be registered to container</param>
public static void AddServiceAnt(this IServiceCollection @this, params Assembly[] handlerAssemblies)
{
_handlerAssemblies = handlerAssemblies;
Expand Down
3 changes: 2 additions & 1 deletion tools/needPublishPro.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ServiceAnt\ServiceAnt.csproj
ServiceAnt.IocInstaller.Autofac\ServiceAnt.IocInstaller.Autofac.csproj
ServiceAnt.IocInstaller.Castle\ServiceAnt.IocInstaller.Castle.csproj
ServiceAnt.IocInstaller.Castle\ServiceAnt.IocInstaller.Castle.csproj
ServiceAnt.IocInstaller.DotNetCore\ServiceAnt.IocInstaller.DotNetCore.csproj
4 changes: 1 addition & 3 deletions tools/publishToNuget.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ dotnet msbuild ..\src\!projPath_%userInput%! /t:pack /p:Configuration=Release /p
rem %nugetexe% pack ..\src\!projPath_%userInput%! -Build -Properties Configuration=Release -OutputDirectory .\nupkg -IncludeReferencedProjects -Symbols
move ..\src\!projPath_%userInput%!\..\bin\Release\*.nupkg .\nupkg\


rem %nugetexe% push .\*.nupkg -Source https://www.nuget.org/api/v2/package 4917e7f9-0370-40c2-8074-f4f23b85ef41
rem del /q /f .\nupkg\*.nupkg
%nugetexe% push .\nupkg\*.nupkg -Source http:https://192.168.19.88:1024/nuget clear
rem %nugetexe% push .\nupkg\*.nupkg -Source http:https://192.168.19.88:1024/nuget clear

:end
echo 上传packge完成,输入任意键继续
Expand Down

0 comments on commit 0176d66

Please sign in to comment.