發表文章

目前顯示的是有「codelog」標籤的文章

SignalR 入門案例-1

  參考官方的文件 https://blogs.msdn.microsoft.com/msdntaiwan/2013/09/09/signalr-web-web/ 。已經有些過時。暫時還沒有其它入門案例,先由這裡開始 使用工具VS2005 開啟新的Web專案(Net 4以上) 使用NuGet取得  Microsoft.AspNet.SignalR.Sample 試執行,果然有些歷史了 要調整的地方有二方面 SignalR初始啟動設置 新增class,用於加入初始啟動 using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.Owin; using Owin; [assembly: OwinStartup(typeof(demo_csharp_singleR.SingleRStart), "Configuration")] namespace demo_csharp_singleR {     public class SingleRStart     {         public void Configuration(IAppBuilder app)         {             Microsoft.AspNet.SignalR.StockTicker.Startup.ConfigureSignalR(app);         }     } }   前台js引用 StockTicker.html <!...

Redis Client 效能 issue

圖片
Redis Client 效能問題 Redis 可以用於快取資料。做為一個快速取用的資料容器 遇到用了Redis還是慢的問題。 追蹤到Redis connection不斷的被建立,而造成Connection多次的重設。影響效能 開發維護軟體總會偶而會遇到許多技術債,不會簡單的一句話就可以解決各種不同的狀況 考量老舊程式,無法大幅度調動。調整為以下方式。使 IDatabase的LifeCycle同所屬BizLogic物件。 以減少重新alloc的動作所造成的時間

SignalR 入門案例-1

參考官方的文件 https://blogs.msdn.microsoft.com/msdntaiwan/2013/09/09/signalr-web-web/ 。已經有些過時。暫時還沒有其它入門案例,先由這裡開始 使用工具VS2005 開啟新的Web專案(Net 4以上) 使用NuGet取得  Microsoft.AspNet.SignalR.Sample 試執行,果然有些歷史了 要調整的地方有二方面 SignalR初始啟動設置 新增class,用於加入初始啟動 using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.Owin; using Owin; [assembly: OwinStartup(typeof(demo_csharp_singleR.SingleRStart), "Configuration")] namespace demo_csharp_singleR {      public class SingleRStart     {          public void Configuration(IAppBuilder app)         {              Microsoft.AspNet.SignalR. StockTicker.Startup.ConfigureSignalR(app);          }      } } 前台js引用 StockTicker.html...