提交 d9490624 编写于 作者: X xleili

docs(cloud):C# suppply cloud in/out doc and fix ivavalid path

上级 4d598231
```csharp ```csharp
// {{#include docs/examples/csharp/SubscribeDemo.cs}} {{#include docs/examples/csharp/native-example/SubscribeDemo.cs}}
``` ```
\ No newline at end of file
using System; using System;
using TDengineDriver; using TDengineDriver;
using TDengineWS.Impl; using TDengineWS.Impl;
using System.Collections.Generic; using System.Collections.Generic;
...@@ -45,7 +45,7 @@ namespace Cloud.Examples ...@@ -45,7 +45,7 @@ namespace Cloud.Examples
} }
// ANCHOR_END: insert // ANCHOR_END: insert
string selectTable = "select * from test.meters"; string selectTable = "select * from test.meters";
IntPtr res = LibTaosWS.WSQueryTimeout(conn, selectTable, 5000); res = LibTaosWS.WSQueryTimeout(conn, selectTable, 5000);
ValidQueryExecution(res); ValidQueryExecution(res);
// get meta info of the retrieved data as List // get meta info of the retrieved data as List
...@@ -68,13 +68,6 @@ namespace Cloud.Examples ...@@ -68,13 +68,6 @@ namespace Cloud.Examples
{ {
throw new Exception($"get connection failed,reason:{LibTaosWS.WSErrorStr(conn)},code:{LibTaosWS.WSErrorNo(conn)}"); throw new Exception($"get connection failed,reason:{LibTaosWS.WSErrorStr(conn)},code:{LibTaosWS.WSErrorNo(conn)}");
} }
sum(1, 2);
void sum(int i, int j)
{
Console.WriteLine("{0} + {1} = {2}", i, j, i + j);
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册