示例#1
0
        public async override Task <int> HandleCommand(IntegrationArrayBaseCommand <T> request, CancellationToken cancellationToken)
        {
            var model = GlobalConfiguration.IntegrationTemplate.ModelTemplates.FirstOrDefault(m => m.Name == typeof(T).Name);

            if (model == null)
            {
                throw new BusinessException($"Type '{typeof(T).Name}' doesn't have in ModelTemplates");
            }

            return(await repository.WriteArray(request.LoginSession, request.Value));
        }