問題
最近同事透過 K6 進行 WebAPI 壓測時,
發現當 Thread 數多時,就會出奇怪的錯誤,
例如 在 進入 Middlewares 中取好資料到 UserRols 中,
然後在 Controller 中判斷是否存在某個角色時 UserRols.Any(ur => ur.Code == "Admin") ,
本應有資料的,卻變成沒有資料。
Hello! 我是 RM
在Semantic Kernel 呼叫說笑話 Skill的Skill是透過ImportSemanticSkillFromDirectory匯入。
但如果需要可以動態建立 Function 要如何做呢?
Semantic Kernel 提供 RegisterSemanticFunction 及 CreateSemanticFunction 來動態建立 Function,
以下就來測試看看吧~
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true