Dropps
Dropps
CC#
Created by Shiv on 2/26/2024 in #help
Best way to trigger a Queued Email?
if its monolithic then yes its easy if you got any distributed stuff then mediatr cant help you at all
30 replies
CC#
Created by Shiv on 2/26/2024 in #help
Best way to trigger a Queued Email?
did you got a monolith or ?
30 replies
CC#
Created by Shiv on 2/26/2024 in #help
Best way to trigger a Queued Email?
depends on your application
30 replies
CC#
Created by Shiv on 2/26/2024 in #help
Best way to trigger a Queued Email?
re try as in only delete the message when successfully sent
30 replies
CC#
Created by Shiv on 2/26/2024 in #help
Best way to trigger a Queued Email?
that sending part you can do with a scheudler like hangfire quartz or whatever else background jobs you use
30 replies
CC#
Created by Shiv on 2/26/2024 in #help
Best way to trigger a Queued Email?
the consumer of those mails can just always send immediately and you just push your emails to the queue when you want to send something
30 replies
CC#
Created by Shiv on 2/26/2024 in #help
Best way to trigger a Queued Email?
mediatr gives you the ability to use notifications in code if you have some sort of "distributed cloud clusterfuck" then use something like rabbitmq or azure service bus aws SQS as a message queue to queue up those email sendings
30 replies
CC#
Created by Dropps on 1/5/2024 in #help
how to test untestable code
got 100% coverage now
9 replies
CC#
Created by Dropps on 1/5/2024 in #help
how to test untestable code
it was the single line there that was missing a testing that i figured out now thanks to ZZZ.. comment
9 replies
CC#
Created by Dropps on 1/5/2024 in #help
how to test untestable code
oh right thats actually a business rule i have to enforce there
9 replies
CC#
Created by Dropps on 1/5/2024 in #help
how to test untestable code
what you mean by that?
9 replies
CC#
Created by Dropps on 12/17/2023 in #help
options pattern not working
but thanks
28 replies
CC#
Created by Dropps on 12/17/2023 in #help
options pattern not working
then we are in a "double" concern issue state cause i register everything using clean architecture and extension methods for each layer
28 replies
CC#
Created by Dropps on 12/17/2023 in #help
options pattern not working
how does the validation then take place? does it throw an exception or?
28 replies
CC#
Created by Dropps on 12/17/2023 in #help
options pattern not working
.net8 web api
28 replies
CC#
Created by Dropps on 12/17/2023 in #help
options pattern not working
its what iam doing above it
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
ConfigurationManager config = builder.Configuration;

builder.Services.AddOptions<JwtOptions>()
.Bind(config.GetSection(JwtOptions.SectionName));

builder.Services.AddOptions<DatabaseConnectionOptions>()
.Bind(config.GetSection(DatabaseConnectionOptions.SectionName));
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
ConfigurationManager config = builder.Configuration;

builder.Services.AddOptions<JwtOptions>()
.Bind(config.GetSection(JwtOptions.SectionName));

builder.Services.AddOptions<DatabaseConnectionOptions>()
.Bind(config.GetSection(DatabaseConnectionOptions.SectionName));
28 replies
CC#
Created by Dropps on 12/17/2023 in #help
options pattern not working
or am i missing something
28 replies
CC#
Created by Dropps on 12/17/2023 in #help
options pattern not working
it does match already as you see?
28 replies
CC#
Created by Dropps on 12/17/2023 in #help
options pattern not working
what you mean by that?
28 replies