본문 바로가기

분류 전체보기147

Windows Service 템플릿 없이 Console Application으로 서비스 자동 등록/해제 보통 서비스 모듈을 윈도우 서비스 형태로 서비스하기 위해 별도의 윈도우 서비스 프로젝트를 생성하고, 개발 완료 후 배치나 명령어 (sc create xxxx , net start xxxx) 로 등록한다. 좀 더 쉬운 방법이 있는데, 콘솔 프로젝트에 직접 서비스 클래스를 적용하는 것이다. 이하 코드 참조 class Program : ServiceBase { static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; if (System.Environment.UserInteractive) { string parameter = string.Concat(args); //.. 2015. 9. 4.
[WIN8] Windows 8 업데이트 구성 실패 무한로딩 문제 해결방법 명령 창에서 다음의 커맨드를 입력.dism /online /cleanup-image /restorehealth 작업 소요 시간은 환경에 따라 오래 걸릴 수 있다. 완료되면 sfc /scannow를 입력해서 시스템 파일의 오류 및 복구 시도. 완료되면 윈도우 업데이트 수행. 2015. 3. 25.
[ASP.NET WebApi] Newtonsoft.Json을 활용한 응답 메세지 확장 CLASS NAME: JsonContent public class JsonContent : HttpContent { private readonly JToken _value; public JsonContent(JToken value) { _value = value; Headers.ContentType = new MediaTypeHeaderValue("application/json"); } protected override Task SerializeToStreamAsync(Stream stream, TransportContext context) { var jw = new JsonTextWriter(new StreamWriter(stream)) { Formatting = Formatting.Indented }.. 2014. 12. 10.
히타치 NAS 사은품 기프티콘 기간만료 ㅠ,.ㅠ 보호되어 있는 글 입니다. 2014. 11. 5.