摘要:
页面 <ListView SizeChanged="ListView_SizeChanged" Loaded="ListView_Loaded" > <ListView.View> <GridView> <GridViewColumn Header="col1" Width="100" /> <Gr 阅读全文
摘要:
客户端 private static void WaitData() { using (NamedPipeServerStream pipeServer = new NamedPipeServerStream("testpipe", PipeDirection.InOut, 1)) { try { 阅读全文
摘要:
使用FileSystemWatcher 初始化传递要监听的目录, 在过滤中过滤文件(可以使用通配符) public class FileListenerServer { private FileSystemWatcher _watcher; public FileListenerServer(str 阅读全文
摘要:
本文提供两种mapper方式 反射 表达式(性能比反射更高) 测试运行一百万次映射,硬编码大概在15毫秒,反射560毫秒,表达式150毫秒 public static class MapperHelper { /// <summary> /// 将数据映射到指定的对象中 /// </summary> 阅读全文
摘要:
查找对应删除的时间点 select * from v$sql where sql_text like '%test_table%'; 使用时间来回复指定的表数据 insert into test_table select * from test_table as of timestamp to_ti 阅读全文
摘要:
!!!主要需要注意 serverUrl需要以/结尾!!! 需要注意引用Microsoft.Extensions.Configuration.Abstractions 1. //serverUrl需要以“/”结尾 K3CloudApi client = new K3CloudApi("http://x 阅读全文
摘要:
利用 .desktop 配置文件路径: /etc/xdg/autostart 创建test.desktop文件 [Desktop Entry] Name=Test #配置名 Exec=/root/Test #可执行文件路径 Type=Application #可执行文件类型 禁用DM(Display 阅读全文
摘要:
需要按照对应的nuget包: System.Management 获取cpu信息 ManagementClass mc = new ManagementClass("Win32_Processor"); ManagementObjectCollection moc = mc.GetInstances 阅读全文
摘要:
不能直接修改配置文件 可以使用bin目录下的config.bat进行修改 ( 需要配置好java环境,如果无法运行需要检查java环境中的文件是否完整 ) 阅读全文
摘要:
startup文件中需要将websocket添加到管道 Configure(app => { //注意位置尽量在ocelot之前 app.UseWebSockets(); app.UseOcelot().Wait(); }) socket配置路由 { "DownstreamPathTemplate" 阅读全文