Merge pull request #235 from wbaoning/net5.0-archive

redis类从Extensions移动到Common
This commit is contained in:
ansonzhang 2022-01-29 10:30:36 +08:00 committed by GitHub
commit 8df3900308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 47 additions and 23 deletions

View File

@ -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>

View File

@ -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>

View File

@ -0,0 +1,6 @@
namespace Blog.Core.Common.Redis
{
class Class12
{
}
}

View File

@ -0,0 +1,6 @@
namespace Blog.Core.Common.Redis
{
class Class1
{
}
}

View File

@ -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缓存接口

View File

@ -1,6 +1,6 @@
using System;
namespace Blog.Core.Extensions
namespace Blog.Core.Common.Redis
{
/// <summary>
/// Redis缓存接口

View File

@ -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
{

View File

@ -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
{

View File

@ -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)
{

View File

@ -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
{

View File

@ -1,4 +1,5 @@
using Blog.Core.Common;
using Blog.Core.Common.Redis;
using Blog.Core.Extensions;
using Castle.DynamicProxy;
using System;

View File

@ -1,4 +1,5 @@
using Blog.Core.Common;
using Blog.Core.Common.Redis;
using Microsoft.Extensions.DependencyInjection;
using StackExchange.Redis;
using System;

View File

@ -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;

View File

@ -12,7 +12,7 @@ namespace Blog.Core.Services
{
this._dal = dal;
base.BaseDal = dal;
}
}
}
}

View 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;
}
}
}