Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
IoTSharp
提交
e635f643
I
IoTSharp
项目概览
jobily
/
IoTSharp
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
IoTSharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e635f643
编写于
6月 14, 2022
作者:
W
wq1234wq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
缓存
上级
ac2c1c95
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
11 addition
and
5 deletion
+11
-5
IoTSharp/Controllers/DevicesController.cs
IoTSharp/Controllers/DevicesController.cs
+2
-1
IoTSharp/FlowRuleEngine/FlowRuleProcessor.cs
IoTSharp/FlowRuleEngine/FlowRuleProcessor.cs
+3
-1
IoTSharp/Gateways/RawDataGateway.cs
IoTSharp/Gateways/RawDataGateway.cs
+2
-1
IoTSharp/Handlers/EventBusHandler.cs
IoTSharp/Handlers/EventBusHandler.cs
+2
-1
IoTSharp/Handlers/MQTTServerHandler.cs
IoTSharp/Handlers/MQTTServerHandler.cs
+2
-1
未找到文件。
IoTSharp/Controllers/DevicesController.cs
浏览文件 @
e635f643
...
...
@@ -62,6 +62,7 @@ namespace IoTSharp.Controllers
SignInManager
<
IdentityUser
>
signInManager
,
ILogger
<
DevicesController
>
logger
,
MqttServer
serverEx
,
ApplicationDbContext
context
,
MqttClientOptions
mqtt
,
IStorage
storage
,
IOptions
<
AppSettings
>
options
,
ICapPublisher
queue
,
IEasyCachingProviderFactory
factory
,
FlowRuleProcessor
flowRuleProcessor
,
IServiceScopeFactory
scopeFactor
)
{
string
_hc_Caching
=
$"
{
nameof
(
CachingUseIn
)}
-
{
Enum
.
GetName
(
options
.
Value
.
CachingUseIn
)}
"
;
_context
=
context
;
_mqtt
=
mqtt
;
_userManager
=
userManager
;
...
...
@@ -72,7 +73,7 @@ namespace IoTSharp.Controllers
_setting
=
options
.
Value
;
_queue
=
queue
;
_flowRuleProcessor
=
flowRuleProcessor
;
_caching
=
factory
.
GetCachingProvider
(
"iotsharp"
);
_caching
=
factory
.
GetCachingProvider
(
_hc_Caching
);
_scopeFactor
=
scopeFactor
;
}
...
...
IoTSharp/FlowRuleEngine/FlowRuleProcessor.cs
浏览文件 @
e635f643
...
...
@@ -32,13 +32,15 @@ namespace IoTSharp.FlowRuleEngine
public
FlowRuleProcessor
(
ILogger
<
FlowRuleProcessor
>
logger
,
IServiceScopeFactory
scopeFactor
,
IOptions
<
AppSettings
>
options
,
TaskExecutorHelper
helper
,
IEasyCachingProviderFactory
factory
)
{
string
_hc_Caching
=
$"
{
nameof
(
CachingUseIn
)}
-
{
Enum
.
GetName
(
options
.
Value
.
CachingUseIn
)}
"
;
_scopeFactor
=
scopeFactor
;
_logger
=
logger
;
_setting
=
options
.
Value
;
_allFlows
=
new
List
<
Flow
>();
_allflowoperation
=
new
List
<
FlowOperation
>();
_helper
=
helper
;
_caching
=
factory
.
GetCachingProvider
(
"iotsharp"
);
_caching
=
factory
.
GetCachingProvider
(
_hc_Caching
);
_sp
=
_scopeFactor
.
CreateScope
().
ServiceProvider
;
}
...
...
IoTSharp/Gateways/RawDataGateway.cs
浏览文件 @
e635f643
...
...
@@ -43,11 +43,12 @@ namespace IoTSharp.Gateways
,
ApplicationDbContext
context
)
{
string
_hc_Caching
=
$"
{
nameof
(
CachingUseIn
)}
-
{
Enum
.
GetName
(
options
.
Value
.
CachingUseIn
)}
"
;
_setting
=
options
.
Value
;
_logger
=
logger
;
_queue
=
queue
;
_scopeFactor
=
scopeFactor
;
_caching
=
factory
.
GetCachingProvider
(
"iotsharp"
);
_caching
=
factory
.
GetCachingProvider
(
_hc_Caching
);
_context
=
context
;
}
...
...
IoTSharp/Handlers/EventBusHandler.cs
浏览文件 @
e635f643
...
...
@@ -36,12 +36,13 @@ namespace IoTSharp.Handlers
,
IOptions
<
AppSettings
>
options
,
IStorage
storage
,
FlowRuleProcessor
flowRuleProcessor
,
IEasyCachingProviderFactory
factory
)
{
string
_hc_Caching
=
$"
{
nameof
(
CachingUseIn
)}
-
{
Enum
.
GetName
(
options
.
Value
.
CachingUseIn
)}
"
;
_appSettings
=
options
.
Value
;
_logger
=
logger
;
_scopeFactor
=
scopeFactor
;
_storage
=
storage
;
_flowRuleProcessor
=
flowRuleProcessor
;
_caching
=
factory
.
GetCachingProvider
(
"iotsharp"
);
_caching
=
factory
.
GetCachingProvider
(
_hc_Caching
);
}
[
CapSubscribe
(
"iotsharp.services.datastream.attributedata"
)]
...
...
IoTSharp/Handlers/MQTTServerHandler.cs
浏览文件 @
e635f643
...
...
@@ -40,6 +40,7 @@ namespace IoTSharp.Handlers
,
IOptions
<
AppSettings
>
options
,
ICapPublisher
queue
,
IEasyCachingProviderFactory
factory
,
FlowRuleProcessor
flowRuleProcessor
)
{
string
_hc_Caching
=
$"
{
nameof
(
CachingUseIn
)}
-
{
Enum
.
GetName
(
options
.
Value
.
CachingUseIn
)}
"
;
_mcsetting
=
options
.
Value
.
MqttClient
;
_settings
=
options
.
Value
;
_logger
=
logger
;
...
...
@@ -48,7 +49,7 @@ namespace IoTSharp.Handlers
_serverEx
=
serverEx
;
_queue
=
queue
;
_flowRuleProcessor
=
flowRuleProcessor
;
_caching
=
factory
.
GetCachingProvider
(
"iotsharp"
);
_caching
=
factory
.
GetCachingProvider
(
_hc_Caching
);
}
static
long
clients
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录