Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Is there a way to develop a windows service (able to start on boot etc...) with .NET Core?
All tutorials and instructions I find utilize System.ServiceProcess.ServiceBase which can not be found and added for some reason in Visual Studio 2015?
I also try to avoid using 3rd party tools/libraries like SrvStart. Something like Topshelf would be acceptable but seems to be not available for .NET core.
And it would be great if the service could run under windows and linux.
Any ideas how I could achieve this?
I'll summarise some options:
Move your code into a .NET Standard library, and host it in a .NET Framework app, so you can use ServiceBase. This will of course need the .NET Framework to be installed on the target machine
Use NSSM (the Non-Sucking Service Manager) to manage a .NET Core console app (it has a public domain license)
Use Windows API calls to hook into Windows service methods. This is the approach taken by DotNetCore.WindowsService and dotnet-win32-service (both are MIT licensed)
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
We built our own CRM for our web application which has several other functions.
Now we got the request from the management that also another web application should use our CRM.
Our current web application is a monolithic one, which means that everything is in one big web application developed with Grails.
The first idea from one DEV was to create a REST API so that they can use our CRM functionality and customers are created in our application/DB and will always get synced back to their application.
I think this is not the best idea and much better would be to screw out our CRM from the monolithic web application and make a stand-alone version of it (microservice). This stand-alone version should then be configurable for things like DB, file storage, entities, workflows, ...
What do you guys think about it and maybe does one has another good idea for this specific use case?
If you can refactor your existing CRM code into Grails plugins then you can use these plugins in your current application and future Grails applications that need CRM functionality. We are using this approach and have 10+ Grails applications in production and almost all of them are using the same set of CRM plugins.
If you like to see how we split up the domains/contexts you can find the plugins here: http://gr8crm.github.io
However we are currently in the process of migrating all CRM plugins to separate microservices (Spring Boot and Micronaut) but it's a huge effort. My advice is to think carefully before you go that route. If you can break out isolated functionality in your current monolith into microservices step by step, then it could be worth trying. But replacing all features in your current CRM with microservices will probably take longer than you expect.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am about to start using Visual Studio 2012 Pro with Azure Websites. I am not using Source control at present. However the idea of rolling back previous versions is very appealing if new code does not work. I really want to keep this as simple as possible.
The options I see are:
1.) TFS (service)
2.) GIT from Local repository to Azure Repository.
3.) Hosted GIT. SInce I am not using GIT at present, then I think this could become an unnecessary extra step.
I am using MVC3, EF4.1, SQL Server, C#.
From your experiences of both, it would be very interesting to hear of your observations
Thank you in advance.
EDIT:
Yes it could be opinion based, but I was hoping for some factual feedback from any folks that had perhaps tried both. I have altered my question above accordingly.
You can use Visual Studio Online. It integrates well with Azure Management Portal and offers both TFS and Git.
Visual Studio Online is free for up to 5 users. Whether you want to go with Git or TFS, I suggest you play around with both and then decide which one you like.
It also offers Agile and Scrum development process templates.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
We have a bunch of Windows services and I was thinking of TopShelf as a way to host them all in a single process. This was supported by Topshelf but I read that starting from version 3.0 Topshelf will no longer support hosting of multiples services in a single container.
So what is then an advantage of Topshelf vs. creation of Windows Service using Visual Studio C# template? Topshelf gives me a console app that I can use for debugging, but if I never have such needs (all our services have just few lines of code calling business logic components, and components are properly unit tested), does Topshelf give any other advantages?
Topshelf is useful for building and deploying Windows services. It is easy to build the services, installation is just servicename install, and easy to debug. In reality, you don't NEED any of these things. But if it saves some effort, it might be worth using.
Topshelf 3.0 removed the 'shelving' component because one cannot monitor individual services inside a single host easily. If you don't have that visibility into what's going on via normal monitoring then it's not terribly useful.
for easily debugging windows service, try James Michael Hare's debuggable/installable windows service
http://geekswithblogs.net/BlackRabbitCoder/archive/2011/03/01/c-toolbox-debug-able-self-installable-windows-service-template-redux.aspx
I have used his method in many of windows service programs in my job and it works well.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have recently started programming with Asp.Net MVC 4. I have downloaded Visual Studio 2010 from Microsoft DreamSpark and a "Standard" Microsoft Server 2008 R2. Now I installed the Server into a VirtualBox on Promiscuous Network (thus allowing it to talk to my whole network) and next I want to use it to test my applications.
Can you point me to good resources that tell me how to set up the server best for this?
Thank you so much for your help.
This is a walk-through about creating an intranet site using asp.net MVC, IIS 7 and visual studio 2010.
It worked out for me great.
regards
This link is for MVC 3, but it still applies to you. http://www.asp.net/mvc/mvc3
It includes everything including the Razor engine.
Installation and Help
•Install ASP.NET MVC 3 using the Web Platform Installer (recommended) http://www.microsoft.com/web/gallery/install.aspx?command=getinstallerredirect&appid=MVC3
•Install ASP.NET MVC 3 using the installer executable http://go.microsoft.com/fwlink/?LinkID=208140
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
If you could suggest only one new (or enhanced) feature for the Internet Direct (Indy) version 11, which one would it be?
Update: I found the first information about an upcoming Indy 11 version in question Step by step upgrade of Indy 10 in Delphi 2009 (where Remy mentions plans for a new installer in a comment)
Some ideas from my side:
a RFC 4918 (WebDAV) server implementation. Example use case: combined with the Explorer-based integration of WebDAV in Windows, such a server could play the role of a user-friendly document exchange gateway between a workstation and a legacy application
a XMPP implementation. It could bring push based services to Delphi applications to integrate with existing enterprise software systems (instead of frequent polling)
support for DNS SRV record entries
a server and client side WebSocket implementation
example for a standalone SOAP server based on IdHTTPWebBrokerBridge (see How to build stand-alone SOAP web services using Delphi?)
Social client component interfaces (Facebook / twitter)