Alex
Alex
CC#
Created by Mozzarella on 8/12/2024 in #help
RunSynchronously may not be called on a task not bound to a delegate
i will try to see if it builds
36 replies
CC#
Created by Mozzarella on 8/12/2024 in #help
RunSynchronously may not be called on a task not bound to a delegate
its expecting an async output
36 replies
CC#
Created by Mozzarella on 8/12/2024 in #help
RunSynchronously may not be called on a task not bound to a delegate
let me know if you have any questions
36 replies
CC#
Created by Mozzarella on 8/12/2024 in #help
RunSynchronously may not be called on a task not bound to a delegate
public async Task InterfaceUserInformationAsync(IDbContext dbContext, Materiallot materiallot, MessageData messageData) { MessageBuilderMD messageBuilderMD = new MessageBuilderMD(); messageBuilderMD .WithMessageData(messageData) .WithNameOfRequest("To try") .Build(); // Await the asynchronous SendKafka method await kafkaContext.SendKafka(messageBuilderMD.GetMessageData(), dbContext); }
36 replies
CC#
Created by Mozzarella on 8/12/2024 in #help
RunSynchronously may not be called on a task not bound to a delegate
this should work or you can chnage the function too
36 replies
CC#
Created by Mozzarella on 8/12/2024 in #help
RunSynchronously may not be called on a task not bound to a delegate
If its not try this public void InterfaceUserInformation(IDbContext dbContext, Materiallot materiallot, MessageData messageData) { MessageBuilderMD messageBuilderMD = new MessageBuilderMD(); messageBuilderMD .WithMessageData(messageData) .WithNameOfRequest("To try") .Build(); kafkaContext.SendKafka(messageBuilderMD.GetMessageData(), dbContext).GetAwaiter().GetResult(); }
36 replies
CC#
Created by Mozzarella on 8/12/2024 in #help
RunSynchronously may not be called on a task not bound to a delegate
is the context an async contexT?
36 replies
CC#
Created by Mozzarella on 8/12/2024 in #help
RunSynchronously may not be called on a task not bound to a delegate
hellow
36 replies