개정판 91b2b398
issue #000 MarkusLogview에 파일 추가 App.config/ packages.config/ Web.config
MyHub.cs파일에 CloudMarkusEntities를 markusEntities로 변경하고 ForceConnectionMarkus함수에 CloudMarkusCIEntities 부분 주석처리
Change-Id: Ieeb6f5b9b03cf7020fc1a4af77f8fe7c66bb4831
MarkusLogview/SignalREngine/MyHub.cs | ||
---|---|---|
42 | 42 |
public List<StatusDTO> GetPdfStatus() |
43 | 43 |
{ |
44 | 44 |
|
45 |
using (CloudMarkusEntities ent = new CloudMarkusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
45 |
using (markusEntities ent = new markusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
46 | 46 |
{ |
47 | 47 |
return ent.PROPERTIES |
48 | 48 |
.Where(p => p.TYPE == "PDFStatus") |
... | ... | |
70 | 70 |
List<RunProjectsList> ConvertProjectList = new List<RunProjectsList>(); |
71 | 71 |
GET_PROJECT_TYPE getProjType = new GET_PROJECT_TYPE(); |
72 | 72 |
|
73 |
using (CloudMarkusEntities entity = new CloudMarkusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
73 |
using (markusEntities entity = new markusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
74 | 74 |
{ |
75 | 75 |
|
76 | 76 |
// 실행 프로젝트에 대해서 가져옴 ( IsActivity 가 1 인 프로젝트 ) |
... | ... | |
426 | 426 |
#region 다른기기 강제종료 하고 접속할려고 할때 해당 기기 로그 기록하고 다른기기에는 강제종료 메세지 전달 |
427 | 427 |
try |
428 | 428 |
{ |
429 |
using (CloudMarkusEntities ent = new CloudMarkusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
429 |
using (markusEntities ent = new markusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
430 | 430 |
{ |
431 | 431 |
|
432 | 432 |
var lastConnectionLog = ent.LICENSE_LOG |
... | ... | |
437 | 437 |
if (lastConnectionLog != null) |
438 | 438 |
{ |
439 | 439 |
|
440 |
using (CloudMarkusCIEntities entity = new CloudMarkusCIEntities(ConnectStringBuilder.ProjectCIConnectString("000000").ToString())) |
|
441 |
{ |
|
440 |
//using (CloudMarkusCIEntities entity = new CloudMarkusCIEntities(ConnectStringBuilder.ProjectCIConnectString("000000").ToString()))
|
|
441 |
//{
|
|
442 | 442 |
|
443 |
MEMBER connectionUser = entity.MEMBER |
|
444 |
.Where(mem => mem.ID == userID && mem.NAME == userName) |
|
445 |
.FirstOrDefault(); |
|
443 |
// MEMBER connectionUser = entity.MEMBER
|
|
444 |
// .Where(mem => mem.ID == userID && mem.NAME == userName)
|
|
445 |
// .FirstOrDefault();
|
|
446 | 446 |
|
447 |
if (connectionUser != null) |
|
448 |
{ |
|
447 |
// if (connectionUser != null)
|
|
448 |
// {
|
|
449 | 449 |
|
450 |
ForceConnectionStamp(connectionUser, Context.ConnectionId); |
|
450 |
// ForceConnectionStamp(connectionUser, Context.ConnectionId);
|
|
451 | 451 |
|
452 |
Clients.Client(lastConnectionLog.CONNECTION_ID).ForceTerminate(true); |
|
452 |
// Clients.Client(lastConnectionLog.CONNECTION_ID).ForceTerminate(true);
|
|
453 | 453 |
|
454 |
return true;
|
|
454 |
return true; |
|
455 | 455 |
|
456 |
} |
|
457 |
else |
|
458 |
{ |
|
459 |
return false; |
|
460 |
} |
|
456 |
// }
|
|
457 |
// else
|
|
458 |
// {
|
|
459 |
// return false;
|
|
460 |
// }
|
|
461 | 461 |
|
462 |
} |
|
462 |
//}
|
|
463 | 463 |
|
464 | 464 |
} |
465 | 465 |
else |
... | ... | |
508 | 508 |
{ |
509 | 509 |
|
510 | 510 |
|
511 |
using (CloudMarkusEntities logEnt = new CloudMarkusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
511 |
using (markusEntities logEnt = new markusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
512 | 512 |
{ |
513 | 513 |
|
514 | 514 |
LICENSE_LOG log = new LICENSE_LOG() |
... | ... | |
547 | 547 |
#region Connection Stamp Method |
548 | 548 |
try |
549 | 549 |
{ |
550 |
using (CloudMarkusEntities ent = new CloudMarkusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
550 |
using (markusEntities ent = new markusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
551 | 551 |
{ |
552 | 552 |
DateTime filDate = DateTime.Now.AddMonths(-1); |
553 | 553 |
|
... | ... | |
618 | 618 |
#region DisConnection Stamp Method |
619 | 619 |
try |
620 | 620 |
{ |
621 |
using (CloudMarkusEntities ent = new CloudMarkusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
621 |
using (markusEntities ent = new markusEntities(ConnectStringBuilder.MarkusConnectionString().ToString()))
|
|
622 | 622 |
{ |
623 | 623 |
|
624 | 624 |
LICENSE_LOG disconnectionUSER = ent.LICENSE_LOG |
내보내기 Unified diff