Click here to Skip to main content
14,767,936 members
Home » Discussions » C#
   

C#

 
QuestionRunning Function from Task.Run with Cancellation Token gives infinite loop Pin
Exoskeletor4-Sep-20 13:41
MemberExoskeletor4-Sep-20 13:41 
AnswerRe: Running Function from Task.Run with Cancellation Token gives infinite loop Pin
Gerry Schmitz5-Sep-20 5:31
mveGerry Schmitz5-Sep-20 5:31 
GeneralRe: Running Function from Task.Run with Cancellation Token gives infinite loop Pin
Exoskeletor5-Sep-20 9:25
MemberExoskeletor5-Sep-20 9:25 
GeneralRe: Running Function from Task.Run with Cancellation Token gives infinite loop Pin
Gerry Schmitz5-Sep-20 10:05
mveGerry Schmitz5-Sep-20 10:05 
GeneralRe: Running Function from Task.Run with Cancellation Token gives infinite loop Pin
Exoskeletor5-Sep-20 11:17
MemberExoskeletor5-Sep-20 11:17 
GeneralRe: Running Function from Task.Run with Cancellation Token gives infinite loop Pin
Gerry Schmitz5-Sep-20 11:38
mveGerry Schmitz5-Sep-20 11:38 
GeneralRe: Running Function from Task.Run with Cancellation Token gives infinite loop Pin
Exoskeletor5-Sep-20 11:58
MemberExoskeletor5-Sep-20 11:58 
Question.Net Core Windows App, using database repositories Pin
jkirkerx4-Sep-20 12:53
professionaljkirkerx4-Sep-20 12:53 
I decided write a .Net Core Windows App to track my Amazon and EBay sales.
Choose .Net Core 3.1, and the app works pretty damn good. It's suppose to be new, with all these benefits. I can't remember the benefits, maybe one of them being your app runs in a container sort of like docker, and can run on other platforms such as MacOs, Linux.

Also chose Mongo as the DB.

I'm fuzzy on the DB stuff here. I wrote a respository using .Net Core Web techniques, in which I created IOrdersRespository and OrdersRepository, which might of been a mistake. In a .Net Core web app, you register the respository in startup, and use the repository in the controller. But I have no clue if I'm suppose to do sort of the same thing in a Windows app.

I searched around on Google, but it pulls up all the web subjects.

I was thinking of going back and dumping the IOrdersRespository and just use a straight class, and make the functions static.
But then I have to call up the context in every db function.

Any insight would be helpful.
If it ain't broke don't fix it
Discover my world at jkirkerx.com

AnswerRe: .Net Core Windows App, using database repositories Pin
Mycroft Holmes4-Sep-20 13:07
professionalMycroft Holmes4-Sep-20 13:07 
GeneralRe: .Net Core Windows App, using database repositories Pin
jkirkerx4-Sep-20 14:45
professionaljkirkerx4-Sep-20 14:45 
GeneralRe: .Net Core Windows App, using database repositories Pin
Mycroft Holmes4-Sep-20 16:14
professionalMycroft Holmes4-Sep-20 16:14 
GeneralRe: .Net Core Windows App, using database repositories Pin
Gerry Schmitz5-Sep-20 5:40
mveGerry Schmitz5-Sep-20 5:40 
GeneralRe: .Net Core Windows App, using database repositories Pin
jkirkerx5-Sep-20 8:32
professionaljkirkerx5-Sep-20 8:32 
GeneralRe: .Net Core Windows App, using database repositories Pin
Gerry Schmitz5-Sep-20 9:46
mveGerry Schmitz5-Sep-20 9:46 
AnswerRe: .Net Core Windows App, using database repositories Pin
Richard Deeming6-Sep-20 23:30
mveRichard Deeming6-Sep-20 23:30 
GeneralRe: .Net Core Windows App, using database repositories Pin
jkirkerx7-Sep-20 7:58
professionaljkirkerx7-Sep-20 7:58 
GeneralRe: .Net Core Windows App, using database repositories Pin
jkirkerx7-Sep-20 10:14
professionaljkirkerx7-Sep-20 10:14 
GeneralRe: .Net Core Windows App, using database repositories Pin
jkirkerx7-Sep-20 11:29
professionaljkirkerx7-Sep-20 11:29 
GeneralRe: .Net Core Windows App, using database repositories Pin
jkirkerx7-Sep-20 13:12
professionaljkirkerx7-Sep-20 13:12 
Question.NetCore dependency injection and optional params on assembly scanning Pin
Member 148747204-Sep-20 9:17
MemberMember 148747204-Sep-20 9:17 
AnswerRe: .NetCore dependency injection and optional params on assembly scanning Pin
Richard Deeming6-Sep-20 23:23
mveRichard Deeming6-Sep-20 23:23 
QuestionHow to create a method in a User control Pin
Member 147923934-Sep-20 8:49
MemberMember 147923934-Sep-20 8:49 
AnswerRe: How to create a method in a User control Pin
Mycroft Holmes4-Sep-20 13:08
professionalMycroft Holmes4-Sep-20 13:08 
GeneralRe: How to create a method in a User control Pin
Member 147923935-Sep-20 8:34
MemberMember 147923935-Sep-20 8:34 
AnswerRe: How to create a method in a User control Pin
Ralf Meier4-Sep-20 22:18
professionalRalf Meier4-Sep-20 22:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.