Færdiggjort

Create Windows Sevice that calls an Async/Await method

I have a working project that works when running as a Console program.

The console program simply calls the await process in a class that do an infinite loop and checking a server.

Then I created a Windows Service in VS. Added a DoDebug() method that calls the OnStart() method and a #if DEBUG that creates an instace of the Service and run the DoDebug() and that way be able to debug the "service" in VS. This works.

The problem is when i ret the project in Release and installutil... and then starts the Service.

The progressbar goes fast to 50% and then very slow.

This is what i want to start in the OnStart() of the Service

" await InfraSecServerAsync(baseUrl, query, swishOrgnr, swishNumber, registerId, CancellationToken, timeOut); "

This method starts an infinite loop that checks the InfraSec for data.

I have uploaded the [login to view URL] (without refactoring to useable name) directly from VS template and the [login to view URL] with the code working in Debug (but not when running in Release/Service)

The project needs alot of other parts to be installed before its possible to debug/test.

I belive that the fastest way to see the problem and correct it is to use TeamViewer and work directly on my PC.

IMHO this should be an easy task that can be done within a 2-3 hours work.

Evner: C# Programmering, .NET, Software Arkitektur

Se mere: create dll sql calls, visual studio 2005 create windows mobile project, create windows service manage desktop application, async await c#, create async method c#, c# async await explained, c# windows service parallel tasks, windows service while loop, using async await in windows service c#, c# windows service onstart task, c# windows service task delay, create windows tray applications vbnet, script create windows without question, create windows application, create windows mobile application web based aspnet2, create windows desktop application, create windows systemtray application vbnet, hot create windows image, create windows account excel, create windows macro

Om arbejdsgiveren:
( 98 bedømmelser ) Västerås, Sweden

Projekt ID: #20818156

Tildelt til:

xutao650

Hi I have check your source code. You are blocking the main thread of onstart so the windows server can not continue to execute next logics. I can help to fix this in half hour. I am a software engineer with 8 years' Flere

$50 USD in 7 dage
(45 bedømmelser)
5.3

16 freelancere byder i gennemsnit $133 på dette job

kenb080

Hello, I have read your project details carefully and would like to discuss my skills and plans with you. I am an c# expert and have been developing and experimenting with it for 7 years. Great things come from passion Flere

$140 USD in 7 dage
(37 bedømmelser)
6.4
donghyukchung

Dear client! I understood your requirement and I can do it. I see that you need some help for C# development. If you choose me, I'll provide satisfied result you want in a day. Let's discuss more details via chat. Than Flere

$150 USD in 3 dage
(42 bedømmelser)
5.4
fivestar10

Dear sir. I have read your description with great interest. I have experiences with lots of project. Also I am able to finish your task in time. If you send me a message, we can discuss more. I am waiting for your Flere

$140 USD in 7 dage
(11 bedømmelser)
4.6
MuhammadRohailP

Hello My professional career for different organizations revolves around quality desktop and web development including Mobile Apps. High tech companies like hostbreak web technologies and RDX sports have got my service Flere

$250 USD in 7 dage
(4 bedømmelser)
3.6
greenguru2018

Hello, How are you? My pleasure to bid your project. I've read carefully your project description. I have more than five years experience in development related with your project. Your satisfaction with the project is Flere

$140 USD in 7 dage
(4 bedømmelser)
3.4
maanyait

Hello, We are from [login to view URL] having 10 year of experience on dotnetnuke module and portals development [login to view URL] did 150 Dotnetnuke site and developed lot's of dotnetnuke project. You can find some prodcuts om Flere

$140 USD in 7 dage
(2 bedømmelser)
3.2
JinTai

Hi, nice to meet you. My name is Jin Tai. I have over 10 years of industry experience in ASP.net, C#, VB.net. I have good concept of inheritance and C# development. I can quickly help you out. I appreciate if you can s Flere

$140 USD in 7 dage
(1 bedømmelse)
2.3
SeandyAdhitia

Hi, I know what's wrong with your code. Because It happened to me before. Just chat me and I will show you how it should be done. and btw, I have 10 years of experiences as C# Software developer. You can check my Linke Flere

$175 USD på 1 dag
(1 bedømmelse)
2.3
vigneshbalakrish

Hello there, I have read your job description and understood your requirement. I am a Custom website developer and I have excellent in skills with more than 3 Years experience.I'm sure that I will complete with high Flere

$150 USD in 5 dage
(1 bedømmelse)
0.0
yasirnaqv46

Hi There, I have the experience of 5 + Years in my job related field of Asp.Net Website development. According to your job post requirements I am totally relating towards what you need,I am sure that I will meet your Flere

$30 USD in 7 dage
(0 bedømmelser)
0.0
arockraj

Dear Client, I am Arockia Pushparaj. Founder and CEO of Revolite Infotech. My Key Strengths are Strategic Planning, Data Analytics, Innovative Solutions, Data Transformation, Solution Architecture, Quantifiable Benchm Flere

$250 USD in 7 dage
(0 bedømmelser)
0.0
zraul

It’s really an easy task to do, I’m an experienced .NET developer who also has to do with these kind of things at work, contact me if you want to look over it

$30 USD på 1 dag
(0 bedømmelser)
0.0
Pranklin

Immediately, Perfectly, At once. I've read your all descriptions carefully and understood what you want. I am sure if you hire me, I can handle your project perfectly in the quick timeline. Then you,ll be satisfied. Flere

$150 USD in 3 dage
(0 bedømmelser)
0.0
Rafeeqraja

Hello there, I have read your job description and understood your requirement. I am a Custom website developer and I have excellent in skills with more than 3 Years experience.I'm sure that I will complete with high Flere

$150 USD in 5 dage
(0 bedømmelser)
0.0
snvishnoi

I am web developer, having more then 7 years of development experience. I have check the attached code, and seems main thread is blocked , and i would like to work on it, let me know you available time, will connect ov Flere

$50 USD på 1 dag
(0 bedømmelser)
0.0