Skip to main content
3 of 8
added 177 characters in body
jpmc26
  • 29.8k
  • 8
  • 78
  • 118

Several problems come immediately to mind.

  1. This is completely a design question. It's not about the code as much as it is about the principles of the technology you're using. The answer probably won't (or at least doesn't need to) involve code. This is readily apparent just looking at the end of your question:

    Is this an example where it's preferable to break the "no async wrapper for sync code" rule?

    You could ask the same question about a number of other languages without even involving C#. This immediately suggests it'd probably be a much better fit for Software Engineering.

  2. You've included far too many details. In an attempt to narrow it down, you've included a lot of unnecessary details (like you have a "business logic layer into which services are injected as dependencies" and a "data repository service that performs CRUD"). Your question is about an overall design. The real design question is getting lost in this overload of details.

  3. The enormous amount of detail has made the question specific to the point of uselessness to future readers. In an effort to mitigate the first point, it's become "too localized," as the old close reason used to say.

  4. As a result of all that specificity and those code sample, your question has morphed into something approaching a "Here is my entire code base; you figure it out," question. These are awful to try to read through as an answerer.

To fix it, make your question about the principles and the overall design and ask on SoftwareEngineering.SE instead. A TL;DR section isn't going to fix this.

jpmc26
  • 29.8k
  • 8
  • 78
  • 118