W Sigma El Skibidi
Does anyone have any suggestions to potentially improve and make this function work better?
I have a function that basically is supposed to look for gaps for a specified duration on a desired day. I'm looking for ways to improve this and I'm also open for suggestions if there's a completely better way to do this. Even if its some magical linq query.
I call the code using this and then also sort it by how close it is to the specified time that I am looking for.
I know for a fact there is probably a better way to do this and im open for suggestions. Thanks 🙂
I am using the TimePeriodLibrary.NET currently.
6 replies
Im having an issue checking for collisions when comparing DateTime objects.
I have this function that's supposed to check for collisions with bookings. I am using TimeSpans and DateTime objects. I found a post on Stackoverflow that this...
When using this code during normal time periods from 12am to 11pm it works perfectly fine but when I do a check for a time thats supposed to go into a new day it doesnt take that into account.
Im not sure what else I could add to this function to take that into account.
For example if i have a booking that's at 11:30:00pm and the timespan is for an hour, it should in theory be booked until 12:30:00am. But for some reason when I submit a booking for 12am it returns true.
10 replies
Hangfire retries jobs at any server
I have ran into an issue with hangfire that causes my retry jobs to file due to them running on a server that doesnt support it. Currently, I have 2 servers with 2 different queus specified. I dont use "default" queues since my system is separated.
My issue is caused during chaos testing when jobs are supposed to fail and then ultimately retried. My issue is that when a job is supposed to retry, it doesnt go to the "queue" that I have specified. I'm just wondering if there's any way to specifiy in the annotations where to retry the failed batch jobs etc.
Also, if there isn't an option, does Hangfire attempt to run it on a different server eventually?
11 replies
Configuring LocalStack with AWS S3 dotnet web api
So im trying to setup AmazonS3 with one of my APIs, the endpoint essentially is supposed to upload an image to localstack thats inside a docker container.
My issue is with the configuration. I was searching for a resolution and apparently AWS SDK automatically appends the bucket name alongside the url of the endpoint that its trying to interact with.
The resolution I found online on Github Issues is to configure AmazonS3Config and set ForcePathStyle to true.
The issue im having is that it's not available anymore and I'm not entirely sure how else to configure it in Program.cs.
Im using dotnet 7, this is what i currently have in my startup.
The error im having is:
Essentailly the issue im having is with this controller that basically craps some files and is supposed to upload them to s3
2 replies