きなこもち.net

.NET Framework × UiPath,Orchestrator × Azure × AWS × Angularなどの忘備録

Angular画面遷移 × Bad Request × 長い文字列を別画面に送ろうとしてはまった点について

Purpose 背景 問題 原因 対応 実際の対応 そのほかに考えた方法 まとめ Purpose AngularのアプリケーションをIISにデプロイしたとき、Http Status 400 : Bad Requestのエラーが出てはまったときの対応方法についてまとめる 背景 A画面から、B画面に遷移する…

IHttpClientFactory × Unit Test × テスト方法について

目的 参考にしたサイト テスト対象のクラス UnitTestの追加 メソッドの追加 テストの作成 まとめ 作ったコード 目的 HttpClientを使ったServiceのUnitTestの方法を調べる。 参考にしたサイト Unit Test and Mocking HttpClientFactory in .NET Core テスト対…

HttpClient × HttpClientFactory × より良い実装方法を調べてみた

Purpose 背景 A)アンチパターン 実装 パフォーマンス測定 B)HttpClientをSingleTonで追加したパターン 実装 パフォーマンス測定 C)HttpClientをservices.AddHttpClient()で追加したパターン 実装 パフォーマンス測定 D)IHttpClientFactoryをつかった例 実装…

Angular Material × Tooltip × 見た目を変更する方法の違い(v8.2.3 vs v11.2.6)

目的 Version 8.2.3 Version 11.2.6 [Set font size of Angular Material Tooltip API reference for Angular Material tooltipを参考に・・・ まとめ 目的 Angular MaterialのTooltipの見た目を変更する方法の違いについてまとめる。 対象のバージョンは、8…

Angular × ディレクティブとコンポーネントの親子間でのデータ共有 × ClassとInterfaceとStringを使った挙動の比較

Purpose ディレクティブとコンポーネントの親子間でのデータ共有を参考に、親子間でのデータの共有方法を考える。特に、双方向でデータをやり取りする場合についてまとめる。 Motivation 上記サイトや、他の数多のブログで紹介されているような”String型”の…

Dotnet Core × Console Application × Dependency Injection

Purpose シンプルな起動 StaticなMainを使わない方法 Dependency Injectionを使う方法1 Dependency Injectionを使う方法2 まとめ 追記 Purpose dotnet core / Console Applicationの起動方法についてまとめる。 シンプルな起動 慣れ親しんだ起動方法。サン…

Entity Framework Core × DbContext × 継承する方法

目的 背景 類似現象 Case1: Entity Framework Core DbContext inheritance problem with DbOptions in constructor 現象 解決策 Case2: How do I implement DbContext inheritance for multiple databases in EF7 / .NET Core 現象 解決策 まとめ 目的 Entit…