コード例 #1
0
            public override void Handle(object param)
            {
                mLogger.Debug("IN - {@Param}", param);
                ServerMessageServiceParam paramObj = (ServerMessageServiceParam)param;
                var paramHandler = paramObj.Data as HandlerParameter;

                if (paramHandler.LabelId != null && paramHandler.LabelId.Length > 0)
                {
                    var categories = mCategoryDao.FindCategory(true, paramHandler.LabelId);

                    var cacheEntryOptions = new MemoryCacheEntryOptions();
                    mMemoryCache.Set(cacheKey,
                                     new CategoryListParam()
                    {
                        CategoryList = categories.ToArray()
                    },
                                     cacheEntryOptions);
                }
                else
                {
                    mLogger.Warn("カテゴリ一覧の取得ソースを指定してください。");
                    return;
                }

                mIntentManager.AddIntent(ServiceType.Workflow, "ACT_UPDATED_CATEGORYLIST");
                mLogger.Debug("OUT");
            }