<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kinakomotitti</author_name>
  <author_url>https://blog.hatena.ne.jp/kinakomotitti/</author_url>
  <blog_title>きなこもち.net</blog_title>
  <blog_url>https://www.kinakomotitti.net/</blog_url>
  <categories>
    <anon>ASP.NET Core</anon>
    <anon>C#</anon>
  </categories>
  <description>この記事の目的 本題 きっかけとなったエラー 対処法１ 対処法２ まとめ この記事の目的 この記事は、 バックグラウンド処理でも、インジェクションしたDBContextを使って処理をするための方法 をまとめることを目的としています。 本題 きっかけとなったエラー 実行したコード //呼び出し元 public IActionResult Get() { Task.Run(()=&gt;this._secondService.Execute()); return Ok(); } //secondService public void Execute() { try { this._dotnetConte…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.kinakomotitti.net%2Fentry%2F2020%2F02%2F02%2F190024&quot; title=&quot;手探り入門×.NET Core×backgroundタスクでDBContextを使う - きなこもち.net&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-02-02 19:00:24</published>
  <title>手探り入門×.NET Core×backgroundタスクでDBContextを使う</title>
  <type>rich</type>
  <url>https://www.kinakomotitti.net/entry/2020/02/02/190024</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
