Azureはじめました

Windows Azureで業務システムを組んでみる日記

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

Microsoft.Owin.Security.AuthenticationManagerでサインアウトができない

The issue is easily reproduced in the default asp.net project template by setting the validateInterval parameter of the OnValidateIdentity to 1 minute, and then waiting 1 minute before clicking the log off button. If the call to the action…

RedisCacheに非同期でアクセスしようとするとハングアップしてしまう

それなりに大規模なミッションでボトルネックになるデータベースを保護するためにキャッシュ機構を作る必要に迫られて、ならばとAzure Redis Cacheを使ってみた。 Redis Session State Providerは普通に動くし動作も快適。単純なテストでRedisに読み書きする…

列挙型からSelectListItemを生成とか

列挙型プロパティのEditとかでDropdownを使いたいけどSelectListItemを毎回作るコードを書くのは面倒なのでユーティリティ化 public static class ViewHelper { public static IEnumerable<SelectListItem> toList<T>() where T : struct, IConvertible { if (!typeof(T).IsEnum</t></selectlistitem>…