15,886,578 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Jacob Himes (Top 20 by date)
Jacob Himes
26-Sep-16 14:03pm
View
This site is for questions, not a free do-my homework/job for me emporium.
Jacob Himes
30-Jun-16 15:30pm
View
Very true, its annoying the nomenclature of the dev world.
Jacob Himes
29-Jun-16 18:15pm
View
The management of the console application is not taken care of by user implementation. The console application is started by a scheduled task, as In this time of day, not by a http request or a request running on a schedule. It is nearly the same as scheduling a program to run on your local machine with Windows at a certain time of day. It is executed by the fabric of the cloud environment PaaS. Windows service is not an option unless you have a virtual machine, which costs a few more dollars, OP has a shared web instance, they do not run windows services.
Of course I may be misunderstanding OP's question in the sense he wants this task to run every time a record is created, but he said "schedule" then "task", then mentioned how he cannot do it in a shared hosting instance via a windows service, so I'm at the mercy of context clues here.
FYI I totatly agree with you that invoking a new console process should never be at the end of a stateless http call.
Jacob Himes
29-Jun-16 13:36pm
View
Yes you are very right the misconception needs to be addressed. I'm actually still unsure if the client met a web form or a windows form since later in the question he mentions he tried writing a windows service. It is a common misconception by beginners to create a blank windows form to perform a task that requires no user interaction.
Console applications are great for web jobs, and recommended along bat files and other script file types. The web job controls the lifetime of the application. It fires up the console application...waits for it to complete, and then will not fire it up again until the next scheduled time. Console applications when written correctly close themselves when they are done executing. If a continuous job is needed, the console app is written as an endless loop. Also, all output of the app is stored in the cloud log. This is standard in cloud solutions like Azure, BlueMix, and Amazon.
Here's a link to how a web job works in Azure.
https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/
Jacob Himes
23-Jun-15 19:26pm
View
Amen, never use concatenation for queries. And data model your database layer if you can.
Jacob Himes
16-May-15 15:59pm
View
This is a just-in-case cover bases question. Have you made sure that this log file is in fact not being accessed by any other program/process?
Jacob Himes
16-May-15 15:54pm
View
I swear by Umbraco, best .net CMS. Tried oracle and others.
Jacob Himes
16-May-15 15:54pm
View
You will need to be more specific. Are you using SignalR?
Jacob Himes
1-May-15 13:02pm
View
Are you creating the video file for purpose of rendering it on a webpage? Otherwise you shouldn't be using any web platform and instead you'd be better off programming a windows service or other desktop app and use WCF.
Jacob Himes
30-Apr-15 4:58am
View
Also, what platform are we talking about here, WPF, windows forms, web forms...?
Jacob Himes
29-Apr-15 5:19am
View
That's great. Yeah I learned very quickly that the managed Oracle data provider for .net is muuuuccchhh better. We had many problems with the old data provider and our x64 servers.
Jacob Himes
29-Apr-15 0:00am
View
What exactly are you trying to do if you don't mind me asking? Are you trying to create a stored procedure that hits a rest api then inserts data into some tables? It might be best to implement this in a webservice or webjob of some sort. At my work we would never do a middleware task such as this in our database.
Jacob Himes
5-Dec-13 14:11pm
View
I think at this point, I'm going to shy away from multi-threading dispatchers. I'll accept your solution.
Jacob Himes
5-Dec-13 10:51am
View
Mechanically speaking, you are right, work is being offloaded to a different thread, but the UI thread you are talking about is the rendering thread. There is a one and only "User Interface Thread" but its of lower abstraction and called the rendering thread.
Jacob Himes
5-Dec-13 10:28am
View
I believe you are scheming the article. The article states that there is underlying rendering thread, and then whats called the "UI Thread", a ui thread has its own dispatcher, and you can create multiple UI threads all with their own dispatchers.
Here is another quick article I found of someone who had a question on multiple UI threads
http://social.msdn.microsoft.com/Forums/vstudio/en-US/f4b4ae39-7132-425c-88ac-46024b6d592f/communication-between-multiple-ui-threads?forum=wpf
Jacob Himes
5-Dec-13 10:25am
View
There is however, one rendering thread. The UI thread is referred to the higher level of abstraction that processes wpf window events, animations, and so forth.
Jacob Himes
5-Dec-13 10:22am
View
I've read that a multi-threaded UI lessens the load, I'm very familiar with dispatching and such. I have a lot of real-time updating going on, and I want separate dispatchers running on separate threads for unrelated windows. I've read in msdn that the thread pool bottles down still to the message pump that is on the UI thread, so a single thread is doing the work, with a rendering thread beneath it. If you believe I'm wrong, please respond with citations.
Jacob Himes
5-Dec-13 10:16am
View
wpf can have a multi-threaded ui
Jacob Himes
5-Dec-13 10:14am
View
see http://msdn.microsoft.com/en-us/library/ms741870(v=vs.110).aspx
Jacob Himes
5-Dec-13 10:13am
View
Deleted
See http://msdn.microsoft.com/en-us/library/ms741870(v=vs.110).aspx
Show More