Samuel
Samuel
CC#
Created by Samuel on 7/9/2024 in #help
Embedding a 3D view with OpenGL backend within a WPF view
I have found this solution https://github.com/qian-o/SilkRenderer I've managed to get a working copy in .NET. I'd like to get it working with NetFx. I'm currently getting a System.PlatformNotSupportedExceptio
7 replies
CC#
Created by Samuel on 7/9/2024 in #help
Embedding a 3D view with OpenGL backend within a WPF view
I'd like to avoid that
7 replies
CC#
Created by Samuel on 7/9/2024 in #help
Embedding a 3D view with OpenGL backend within a WPF view
I won't be able to interface with Silk directly? I'll have to do some interop?
7 replies
CC#
Created by Samuel on 10/17/2023 in #help
✅ Using a scoped service within an IHostedService
That did it! Final code:
private async void RequestAuctionDataProcessing(object? state)
{
await using var scope = _serviceProvider.CreateAsyncScope();
var mediator = scope.ServiceProvider.GetRequiredService<IMediator>();
await mediator.Send(new ProcessAuctionDataCommand(1305));
}
private async void RequestAuctionDataProcessing(object? state)
{
await using var scope = _serviceProvider.CreateAsyncScope();
var mediator = scope.ServiceProvider.GetRequiredService<IMediator>();
await mediator.Send(new ProcessAuctionDataCommand(1305));
}
Thanks @Pobiega and @jcotton42
8 replies
CC#
Created by Samuel on 10/17/2023 in #help
✅ Using a scoped service within an IHostedService
So I would have to provide the DbContext with the request?
8 replies
CC#
Created by Tesseraction on 10/14/2023 in #help
MVVN w/ Dependency Injection: Best Practice
That way your initialization will only occur once
51 replies
CC#
Created by Tesseraction on 10/14/2023 in #help
MVVN w/ Dependency Injection: Best Practice
Is there a reason why you can't make this a Singleton?
51 replies
CC#
Created by Samuel on 2/24/2023 in #help
❔ ✅ Splitting string without allocation
That's awesome. The whole point of this exercise is to learn more about how to use Span and Memory and associated types, I guess I need to keep practicing. The next issue I have is supporting this functionality in a .NET Framework project. I've tried changing the LangVersion to 8.0 to support range and indexes but no luck. I also cannot parse float from a span. Since this is not related to the problem, I'll just end this here. Thanks
31 replies
CC#
Created by Samuel on 2/24/2023 in #help
❔ ✅ Splitting string without allocation
I think the version of C# I'm using doesn't allow you to split a string with a span
31 replies