<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>guitarrapc_tech</author_name>
  <author_url>https://blog.hatena.ne.jp/guitarrapc_tech/</author_url>
  <blog_title>tech.guitarrapc.cóm</blog_title>
  <blog_url>https://tech.guitarrapc.com/</blog_url>
  <categories>
    <anon>C#</anon>
  </categories>
  <description>コマンドラインアプリケーション(以降CLI)を用意するとき、バッチ処理となるメソッド本体の前後で処理を挟みたいことがあります。例えば、処理の前後にログを出力したい、所要時間を計測したい、処理前に前提を満たせているかチェックしたいなどです。 今回は、C#のCLIフレームワークであるConsoleAppFrameworkで処理実行前後に処理を挟む方法を紹介します。 ConsoleAppFrameworkとは ConsoleAppFrameworkの基本的な使い方 コマンドの前後に処理を簡単にはさみたい ConsoleAppFilterとは ConsoleAppFilterを使って前後処理を挟む 利…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.guitarrapc.com%2Fentry%2F2025%2F01%2F08%2F235959&quot; title=&quot;ConsoleAppFrameworkの処理実行前後に処理を挟む - tech.guitarrapc.cóm&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://github.com/user-attachments/assets/6afb2dc7-fe4b-45ca-9893-538ec41f09cd</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-01-08 23:59:59</published>
  <title>ConsoleAppFrameworkの処理実行前後に処理を挟む</title>
  <type>rich</type>
  <url>https://tech.guitarrapc.com/entry/2025/01/08/235959</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
