Samuel
Embedding a 3D view with OpenGL backend within a WPF view
I'm not looking for detailed steps. I'm just need to know how to render directly to a control within a WPF application. I have played around with Silk.NET which I have loved. Is there a way I can use this with a view within WPF?
7 replies
✅ Using a scoped service within an IHostedService
I have a IHostedService implementation that sends a Mediatr request every hour. The handler uses a DbContext to carry out its work.
When sending the request, I get the following exception:
I have tried to create an async scope, but I still get the exception.
I have listed the project in GitHub. Here is a link to where the functionality lies https://github.com/Scharps/AuctionData/blob/Scharps/issue15/AuctionData.ApplicationCore/Features/ProcessAuctionData.cs
Thank you for reading.
8 replies
❔ ✅ Splitting string without allocation
I'm writing a JsonConverter for Vector3 and I'd like to do this without allocating too much memory.
I've written this extension method to split the string as ReadOnlyMemory. I wanted to use ReadOnlySpan but I'm unable to use this type in IEnumerable<T>.
This is my implementation of Read for JsonConverter<Vector3>
I'd like to know if there are any ways to make my Split method better, and to somehow get my Read method to work.
Thanks for reading
31 replies