提交 b98a5b5a 编写于 作者: 麦壳饼's avatar 麦壳饼

改为 PinusDB

上级 4646198b
......@@ -20,7 +20,7 @@ namespace IoTSharp
Sharding,
Taos,
InfluxDB,
Pinus
PinusDB
}
[JsonConverter(typeof(StringEnumConverter))]
public enum EventBusStore
......
......@@ -241,8 +241,8 @@ namespace IoTSharp
services.AddObjectPool(() => InfluxDBClientFactory.Create(Configuration.GetConnectionString("TelemetryStorage")));
//healthChecks.AddInfluxDB(Configuration.GetConnectionString("TelemetryStorage"),name: _hc_telemetryStorage);
break;
case TelemetryStorage.Pinus:
services.AddSingleton<IStorage, PinusStorage>();
case TelemetryStorage.PinusDB:
services.AddSingleton<IStorage, PinusDBStorage>();
services.AddObjectPool(() =>
{
var cnt = new PinusConnection(settings.ConnectionStrings["TelemetryStorage"]);
......
......@@ -18,11 +18,11 @@ using System.Threading.Tasks;
namespace IoTSharp.Storage
{
public class PinusStorage : IStorage
public class PinusDBStorage : IStorage
{
private readonly ILogger _logger;
private readonly ObjectPool<PinusConnection> _pinuspool;
public PinusStorage(ILogger<PinusStorage> logger, ObjectPool<PinusConnection> pinuspool
public PinusDBStorage(ILogger<PinusDBStorage> logger, ObjectPool<PinusConnection> pinuspool
)
{
_logger = logger;
......
......@@ -17,5 +17,5 @@
"JwtAudience": "IoTSharp.Net",
"EventBusStore": "InMemory",
"EventBusMQ": "InMemory",
"TelemetryStorage": "Pinus"
"TelemetryStorage": "PinusDB"
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册