• R/O
  • HTTP
  • SSH
  • HTTPS

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

なろうブックマーク分析用ツールのPrism+WinUI3サンプル実装


File Info

Rev. 91b05482e5b7288185c0f453ccfc74c20099b04b
大小 1,055 字节
时间 2023-09-30 19:37:53
作者 yoshy
Log Message

[MOD] プロジェクト間の依存関係、外部パッケージへの依存関係の修正
[UPG] ClearAuLaitのCaptionFormatterの変更に伴う修正

Content

using CleanAuLait.Domain.Service;
using CleanAuLait.UseCase.Interactor;
using CleanAuLait.UseCase.Response;
using TestNarou3.Domain.Boundary.Service;
using TestNarou3.UseCase.Boundary.Interactor;
using TestNarou3.UseCase.Request;
using TestNarou3.UseCase.Response;

namespace TestNarou3.UseCase.Interactor
{
    internal class AppConfigSaveInteractor
            : AbstractUseCaseInteractor<AppConfigSaveRequest, AppConfigSaveResponse>
            , IAppConfigSaveInteractor
    {
        private readonly IAppConfigService service;

        public AppConfigSaveInteractor(
                IAppConfigService service
        )
        {
            this.service = service;
        }

        public override AppConfigSaveResponse Interact(AppConfigSaveRequest req)
        {
            try
            {
                this.service.Save();

                return new();
            }
            catch (ServiceException e)
            {
                return UseCaseResponse.Abort<AppConfigSaveResponse>(e.Message);
            }
        }

    }
}