Terminé

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.

Compétences : Programmation C#, .NET, Architecture Logicielle

en voir plus : 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

Concernant l'employeur :
( 98 commentaires ) Västerås, Sweden

Nº du projet : #20818156

Décerné à:

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' Plus

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 7 jours
(45 Commentaires)
5.3

16 freelance font une offre moyenne de $133 pour ce travail

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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(37 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(42 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(11 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(4 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(4 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(2 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(1 Évaluation)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(1 Évaluation)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
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. Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(0 Commentaires)
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 Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(0 Commentaires)
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 Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0