Skip to content

Commit

Permalink
services.AddTransient<WxEventController>();
Browse files Browse the repository at this point in the history
  • Loading branch information
xl-wenqiang committed Feb 12, 2021
1 parent a50a3c4 commit 5aca4c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
</PropertyGroup>
<PropertyGroup>
<Authors>雪雁</Authors>
Expand Down
4 changes: 3 additions & 1 deletion src/Magicodes.Wx.PublicAccount.Sdk.AspNet/Extentions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Magicodes.Wx.PublicAccount.Sdk.AspNet.ServerMessages;
using Magicodes.Wx.PublicAccount.Sdk.AspNet.Controllers;
using Magicodes.Wx.PublicAccount.Sdk.AspNet.ServerMessages;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
Expand All @@ -16,6 +17,7 @@ public static class Extentions
public static IServiceCollection AddServerMessageHandler(this IServiceCollection services)
{
services.AddSingleton<ServerMessageHandler>();
services.AddTransient<WxEventController>();
return services;
}
}
Expand Down

0 comments on commit 5aca4c6

Please sign in to comment.