I have a multithreaded windows service application, I want to know every moment how many threads(with thread id, thread name, corresponding process id) are running which are created by my application.
Thank in advance.
...
How would one typically implement a service layer in an MVC architecture? Is it one object that serves all requests to underlying business objects? Or is more like an object that serves different service objects that in their turn interact with business objects?
So:
Controller -> Service -> getUserById(), or:
Controller -> ServiceMana...
I have a windows service that utilizes an infinite loop and thread.sleep. The sleep time for the thread is 10 seconds.
When the service is initially started AND has work to do (data exist in SQL), it immediately does it's processes. It continues to be responsive and process tasks every 10 seconds as long as it has work to do. If no dat...
First let me state that, despite being a fairly new practitioner of TDD, I'm pretty much sold on its benefits. I feel like I've progressed enough to consider using mocks and have hit a real brick wall when it comes to understanding where mocks fit in with OOP.
I've read as many relevant posts/articles on the subject as I could find (Fo...
I have an object I pass to a WCF service. Then on the server, the service modifies some properties of the object, and returns an int.
On the client side, after the service is called, the changes made to the objects' properties are not there.
My unit tests work fine. But when run over services, the problem occurs.
Any ideas on how to f...
Hello,
I have a simple windows Service developed in VS.net 2008 and VB.net. When I install the service using Installutil.exe from the command prompt it is working like a charm.
When I try to add a setup project and set the output and build and install it though it says successfully installed, it is not showing up in the services.
The e...
I have created a C# service but it fails to starts. I get the following message when I attempt to start it:
The System Usage Monitor service on Local Computer started and then stopped. Some services > stop automatically if they have no work to do, for example, the Performance Logs and Alerts > service.
The following is my OnStart ...
Hi!
I have a form
MyForm : System.Windows.Forms.Form {}
and I need to call
Site.GetService(..)
before user starts using this form.
But it's null in constructor and all loading events I've tried to override.
When is the Site not null, please?
...
I am developing a custom Windows service with C# that will manage state for several instances .NET applications. How can I pass data (such as token) to the service through the ServiceController?
Is this possible or am I not fully understanding the design intent behind Windows services?
...
Sorry for being the 100000th person to ask the same question. But I guess my case is slightly distinctive.
The application is that we'd like to have an Android phone client on 3g and a light python web service server.
The phone would do most of the work and do a lot of uploading, pictures, GPS, etc etc. The server just has to respond w...
Hi!
I've implemented a service layer in my application like:
http://www.asp.net/learn/mvc/tutorial-38-cs.aspx
(I use Linq2SQL). Now I've trouble in implementing the Edit ActionResult. In the Create (Post) ActionResult I take the service method:
if (_service.CreateMovie(movie))
{
return RedirectToAction("Details", new { id = movie...
I've a website that puts info into a mySQL database and a windows service (written in VB.Net) that polls the db and actions what's in there.
However, occasionally it stalls and rather than having to RDP into the server, I want superusers to click on a button to restart the service.
I can get the button to say, do a directory listing of c...
So here's my problem, I need to do a c# service running on a server who's getting file on ftp one time per day at 3am. I think that I can do it with a thread.sleep() or by compare the DateTime.Now with 3am....
Do you have better solution?
Thank you very much for your help!
...
Hi,
I'm tempted by Automator.app's ability to create contextual services in Mac OS X Snow Leopard. I would like to create some keyboard accessible shortcuts to manipulate text snippets by calling a shell script. However, Automator only suggests bash, Perl, Python and Ruby (among others) to allow this. But, since PHP also ships with Mac ...
I'm am developing a Firefox extension which interfaces with an underlying Windows service (which I have already made).
During the development so far I encountered one bug in the installer program (which installs the FF extension AND the service). This was due to the security model on Vista requiring elevated privileges to be able to ins...
Currently, I have a project with a Windows Service. I also created another "Setup Project" which installs the Windows Service.
My question is this: Can I add another Windows Service to the same project? (This way, I can use 1 installer, and share some code between the services more easily.) If I can, does that mean when one service e...
In SOA(Service Oriented Architecture), service composition usually consider the QoS or the Quality of Service during the composition stage. If I am going to create a WCF-based SOA, how would I get the QoS in WCF context?
...
Hi all, When I try to access a webservice hosted in Tomcat from C# code, I get error message like this.
There was an error in serializing body of message searchRepositoriesRequest: '
Unable to generate a temporary class (result=1).
error CS0266: Cannot implicitly convert type 'object' to 'object[]'. An explicit
conversion exists (are y...
I am an independent software contractor. Companies hire me to write very specific pieces of software in a particular industry. I bill/invoice companies only for the hours spent working on the specific project they have me working on.
A new client of mine recently sent me a service agreement that will cover the time period over the next ...
I have built a web service that uses DLLImport to access unmanaged code. The service works just fine running in ASP.NET server but the application is generating an error once I run it from IIS. I have checked permissions, moved ddl to system32, etc. I am not sure what else to do, the service needs to run in IIS. What should I do?
...