mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
Merge pull request #235 from wbaoning/net5.0-archive
redis类从Extensions移动到Common
This commit is contained in:
commit
8df3900308
|
@ -729,7 +729,7 @@
|
|||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Blog.Core.Controllers.ValuesController.RedisMq(Blog.Core.Extensions.IRedisBasketRepository)">
|
||||
<member name="M:Blog.Core.Controllers.ValuesController.RedisMq(Blog.Core.Common.Redis.IRedisBasketRepository)">
|
||||
<summary>
|
||||
测试Redis消息队列
|
||||
</summary>
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
using Blog.Core.Common;
|
||||
using Blog.Core.Common.HttpContextUser;
|
||||
using Blog.Core.Common.HttpRestSharp;
|
||||
using Blog.Core.Common.Redis;
|
||||
using Blog.Core.Common.WebApiClients.HttpApis;
|
||||
using Blog.Core.EventBus;
|
||||
using Blog.Core.EventBus.EventHandling;
|
||||
using Blog.Core.Extensions;
|
||||
using Blog.Core.Filter;
|
||||
using Blog.Core.IServices;
|
||||
using Blog.Core.Model;
|
||||
|
@ -20,6 +20,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
namespace Blog.Core.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
|
|
6
Blog.Core.Common/Redis/Class1.cs
Normal file
6
Blog.Core.Common/Redis/Class1.cs
Normal file
|
@ -0,0 +1,6 @@
|
|||
namespace Blog.Core.Common.Redis
|
||||
{
|
||||
class Class12
|
||||
{
|
||||
}
|
||||
}
|
6
Blog.Core.Common/Redis/Class1.cs.bak
Normal file
6
Blog.Core.Common/Redis/Class1.cs.bak
Normal file
|
@ -0,0 +1,6 @@
|
|||
namespace Blog.Core.Common.Redis
|
||||
{
|
||||
class Class1
|
||||
{
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Blog.Core.Extensions
|
||||
namespace Blog.Core.Common.Redis
|
||||
{
|
||||
/// <summary>
|
||||
/// Redis缓存接口
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace Blog.Core.Extensions
|
||||
namespace Blog.Core.Common.Redis
|
||||
{
|
||||
/// <summary>
|
||||
/// Redis缓存接口
|
|
@ -1,5 +1,4 @@
|
|||
using Blog.Core.Common;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using StackExchange.Redis;
|
||||
using System;
|
||||
|
@ -7,7 +6,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Blog.Core.Extensions
|
||||
namespace Blog.Core.Common.Redis
|
||||
{
|
||||
public class RedisBasketRepository : IRedisBasketRepository
|
||||
{
|
|
@ -1,8 +1,7 @@
|
|||
using Blog.Core.Common;
|
||||
using StackExchange.Redis;
|
||||
using StackExchange.Redis;
|
||||
using System;
|
||||
|
||||
namespace Blog.Core.Extensions
|
||||
namespace Blog.Core.Common.Redis
|
||||
{
|
||||
public class RedisCacheManager : IRedisCacheManager
|
||||
{
|
|
@ -1,20 +1,13 @@
|
|||
using Blog.Core.IServices;
|
||||
using InitQ.Abstractions;
|
||||
using InitQ.Abstractions;
|
||||
using InitQ.Attributes;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Blog.Core.Extensions.Redis
|
||||
namespace Blog.Core.Common.Redis
|
||||
{
|
||||
public class RedisSubscribe : IRedisSubscribe
|
||||
{
|
||||
private readonly IBlogArticleServices _blogArticleServices;
|
||||
|
||||
public RedisSubscribe(IBlogArticleServices blogArticleServices)
|
||||
{
|
||||
_blogArticleServices = blogArticleServices;
|
||||
}
|
||||
|
||||
|
||||
[Subscribe(RedisMqKey.Loging)]
|
||||
private async Task SubRedisLoging(string msg)
|
||||
{
|
|
@ -3,7 +3,7 @@ using InitQ.Attributes;
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Blog.Core.Extensions.Redis
|
||||
namespace Blog.Core.Common.Redis
|
||||
{
|
||||
public class RedisSubscribe2 : IRedisSubscribe
|
||||
{
|
|
@ -1,4 +1,5 @@
|
|||
using Blog.Core.Common;
|
||||
using Blog.Core.Common.Redis;
|
||||
using Blog.Core.Extensions;
|
||||
using Castle.DynamicProxy;
|
||||
using System;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using Blog.Core.Common;
|
||||
using Blog.Core.Common.Redis;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using StackExchange.Redis;
|
||||
using System;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
using Blog.Core.Common;
|
||||
using Blog.Core.Extensions.Redis;
|
||||
using Blog.Core.Common.Redis;
|
||||
using InitQ;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Blog.Core.Services
|
|||
{
|
||||
this._dal = dal;
|
||||
base.BaseDal = dal;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
18
Blog.Core.Services/AccessTrendLogServices.cs.bak
Normal file
18
Blog.Core.Services/AccessTrendLogServices.cs.bak
Normal file
|
@ -0,0 +1,18 @@
|
|||
using Blog.Core.IRepository.Base;
|
||||
using Blog.Core.IServices;
|
||||
using Blog.Core.Model.Models;
|
||||
using Blog.Core.Services.BASE;
|
||||
|
||||
namespace Blog.Core.Services
|
||||
{
|
||||
public partial class AccessTrendLogServices : BaseServices<AccessTrendLog>, IAccessTrendLogServices
|
||||
{
|
||||
IBaseRepository<AccessTrendLog> _dal;
|
||||
public AccessTrendLogServices(IBaseRepository<AccessTrendLog> dal)
|
||||
{
|
||||
this._dal = dal;
|
||||
base.BaseDal = dal;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user