docs: 提供微信公众平台模块的示例项目

This commit is contained in:
Fu Diwei
2021-07-27 18:37:11 +08:00
parent 0fd94ea541
commit b62867de8d
18 changed files with 616 additions and 7 deletions

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Medallion.Threading;
using Medallion.Threading.FileSystem;
namespace SKIT.FlurlHttpClient.Wechat.Api.Sample_Net5.Services.DistributedLock.Implements
{
class DistributedLockFactory : IDistributedLockFactory
{
private readonly DirectoryInfo _lockFileDirectory = new DirectoryInfo(Environment.CurrentDirectory);
public IDistributedLock Create(string lockName)
{
return new FileDistributedLock(_lockFileDirectory, lockName);
}
}
}