81 lines
2.2 KiB
Plaintext
81 lines
2.2 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"attachments": {},
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"使用.NET专用客户端 Elastic.Client 库,管理集群\n",
|
|
"============================================"
|
|
]
|
|
},
|
|
{
|
|
"attachments": {},
|
|
"cell_type": "markdown",
|
|
"metadata": {},
|
|
"source": [
|
|
"## 全局设置"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"metadata": {
|
|
"dotnet_interactive": {
|
|
"language": "csharp"
|
|
},
|
|
"polyglot_notebook": {
|
|
"kernelName": "csharp"
|
|
}
|
|
},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"<div><div><strong>Restore sources</strong><ul><li><span>https://api.nuget.org/v3/index.json</span></li></ul></div><div></div><div></div></div>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"ename": "Error",
|
|
"evalue": "C:\\Users\\ruyu\\.packagemanagement\\nuget\\Projects\\41008--9e051ac7-8ef7-4861-83fa-3e8c6a441ed6\\Project.fsproj : error NU1101: Unable to find package Ealstic.Client. No packages exist with this id in source(s): C:\\Program Files\\dotnet\\library-packs, C:\\Program Files\\dotnet\\sdk\\7.0.203\\FSharp\\library-packs, Microsoft Visual Studio Offline Packages, nuget.org",
|
|
"output_type": "error",
|
|
"traceback": [
|
|
"C:\\Users\\ruyu\\.packagemanagement\\nuget\\Projects\\41008--9e051ac7-8ef7-4861-83fa-3e8c6a441ed6\\Project.fsproj : error NU1101: Unable to find package Ealstic.Client. No packages exist with this id in source(s): C:\\Program Files\\dotnet\\library-packs, C:\\Program Files\\dotnet\\sdk\\7.0.203\\FSharp\\library-packs, Microsoft Visual Studio Offline Packages, nuget.org"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"#i \"nuget:https://api.nuget.org/v3/index.json\"\n",
|
|
"#r \"nuget:Ealstic.Client\"\n"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": ".NET (C#)",
|
|
"language": "C#",
|
|
"name": ".net-csharp"
|
|
},
|
|
"language_info": {
|
|
"name": "polyglot-notebook"
|
|
},
|
|
"orig_nbformat": 4,
|
|
"polyglot_notebook": {
|
|
"kernelInfo": {
|
|
"defaultKernelName": "csharp",
|
|
"items": [
|
|
{
|
|
"aliases": [],
|
|
"name": "csharp"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|