xxxxプログラマのメモ

先人に感謝と敬意:自分の困ったこと調べたことのメモ

2019-02-01から1ヶ月間の記事一覧

Task.Factory.StartNew not executing the task when deployed

C#

stackoverflow.com Sometimes this kind of behaviour is an indication of an overloaded ThreadPool.Seeing as these are long running/blocking tasks, they should not be scheduled to run in the ThreadPool, which is where Task.Factory.StartNew wi…

specify route parameter type in web api

stackoverflow.comThanks!

How to create start menu shortcut

stackoverflow.com VisualStudioで参照設定を右クリックしてCOMにあるWindows Script Host Object Model .... というのを選択すればオッケイです。Interop.IWshRuntimeLibrary.dll というのが、配置されます。 devlights.hatenablog.comThanks!

pass array of an object to webapi #Get #FromUri #配列 #List

stackoverflow.comObjectListを[FromUri]引数にしたけど、おとなしく[FromBody]にしておきます。 http://localhost:3610/api/phonenumber/getphonenumbersbynumbers? id[0][PhoneNumber]=8016667777&id[0][FinDate]=2012-02-11&id[0][State]=UT& id[1][Phone…

Color Tone #色選択 #同系色

iro-color.comThanks!

Common or Shared #METOO

codenote.netThanks!

Get Process Owner from process name/id #Process #user #owner

stackoverflow.com public string GetProcessOwner(string processName) { string query = "Select * from Win32_Process Where Name = \"" + processName + "\""; ManagementObjectSearcher searcher = new ManagementObjectSearcher(query); ManagementObj…

Directory.EnumerateDirectories #Directory.GetDirectories #LINQ

stackoverflow.com.Net 4.0からの追加事項 var files = Directory.EnumerateDirectories("C:\\PerfLogs", "*.*", SearchOption.AllDirectories) .Where(s => s.EndsWith("logs") || s.EndsWith("falcon"));

nuget 構成が無効です

nuget 構成が無効です packageフォルダの中身を削除 slnのプロパティから復元 でOK!