HaPpY hApPy
Impersonation 사용시 중의사항 본문
Parallel code안에서 Impersonation 작동하지 않으니 아래와같이 사용해야함.
IntPtr token = WindowsIdentity.GetCurrent().Token; Parallel.ForEach(names, (name, state) => { using (WindowsIdentity.Impersonate(token)) { //작업 코드 } }
'.NET > Asp.Net Mvc' 카테고리의 다른 글
Publishing 이후 폴더(Folder) 권한(Permissions) 및 object of type 'manifest' and path 'manifest xml hidden' 에러 (0) | 2017.02.10 |
---|---|
Visual studio web publishing issue (0) | 2016.11.03 |
Visual studio로 실행한 웹사이트에 다른 컴퓨터에서 접속하기. (0) | 2016.07.27 |
Partial Views 가 다시 그려졌을때 이벤트 발생안하는 문제 해결 (0) | 2016.07.26 |