上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 65 下一页
摘要: c# webapi 跳转 public HttpResponseMessage Post() { // ... do the job // now redirect HttpResponseMessage resp = new HttpResponseMessage(HttpStatusCode.M 阅读全文
posted @ 2018-07-12 17:56 94cool 阅读(3046) 评论(0) 推荐(0)
摘要: 1、新建netcore或netstandard或net4.6.1项目 2、编辑项目文件: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFrameworks>net4.6.1;net4.6.2;netstandard2.0;netc 阅读全文
posted @ 2018-07-10 19:17 94cool 阅读(3458) 评论(2) 推荐(0)
摘要: Nodejs【单机】多进程模式集群实例: 1、安装:npm install -s cluster 2、服务代码: var debug = require('debug'); var express = require('express'); var path = require('path'); v 阅读全文
posted @ 2018-07-09 17:17 94cool 阅读(621) 评论(0) 推荐(0)
摘要: 搜索Redis镜像 docker search redis ***************************** 拉取Redis镜像 docker pull redis ***************************** 创建并运行Redis docker run --name myr 阅读全文
posted @ 2018-07-08 18:54 94cool 阅读(723) 评论(0) 推荐(0)
摘要: c# 调试模式下Swaggerf附加接口参数,如:每个接口Header中附加参数appId 1、新增过滤器: public class GlobalHttpHeaderFilter : IOperationFilter { public void Apply(Operation operation, 阅读全文
posted @ 2018-06-28 14:45 94cool 阅读(1754) 评论(0) 推荐(0)
摘要: Visual Studio下运行PowerShell脚本自动更新项目里AssemblyInfo.cs文件的版本(自增小版本号)并发布到Nuget服务器上 附脚本【 update.ps1文件内容】: $path="Properties\AssemblyInfo.cs" $pattern = '\[as 阅读全文
posted @ 2018-06-28 12:32 94cool 阅读(593) 评论(0) 推荐(0)
摘要: 利用Nuget打包添加tools下intsall.ps1【powershell脚本】修改.csproj文件, 以设置1、项目-生成-》输出-》选择【XML文件文件】 2、项目->调试-》启用调试器:取消[启用Visual Studio承载进程] install.ps1脚本如下: 阅读全文
posted @ 2018-06-23 23:18 94cool 阅读(586) 评论(0) 推荐(0)
摘要: /// <summary> /// 下载文件 /// </summary> public class DownloadController : ApiController { /// <summary> /// 下载文件 /// </summary> /// <returns></returns> 阅读全文
posted @ 2018-06-20 14:14 94cool 阅读(5632) 评论(0) 推荐(0)
摘要: // non debug mode from:https://social.msdn.microsoft.com/Forums/vstudio/en-US/221c9385-e2a8-4630-b2f5-f4eabfd62df5/programmatically-detect-whenever-te 阅读全文
posted @ 2018-06-19 15:24 94cool 阅读(167) 评论(0) 推荐(0)
摘要: from:http://blog.163.com/rihui_7/blog/static/212285143201381343240404/ 返回受上一语句影响的行数。 如果行数大于 20 亿,请使用 ROWCOUNT_BIG。 Transact-SQL 语法约定语法@@ROWCOUNT 返回类型i 阅读全文
posted @ 2018-04-27 16:44 94cool 阅读(6735) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 65 下一页