Exemplo n.º 1
0
 // Assembly-private version that doesn't do a security check.  Reduces the
 // number of link-time security checks when reading & writing to a file,
 // and helps avoid a link time check while initializing security (If you
 // call a Serialization method that requires security before security
 // has started up, the link time check will start up security, run
 // serialization code for some security attribute stuff, call into
 // FileStream, which will then call Sethandle, which requires a link time
 // security check.).  While security has fixed that problem, we still
 // don't need to do a linktime check here.
 internal void SetHandleInternal(IntPtr handle)
 {
     waitHandleProtector = new __WaitHandleHandleProtector(handle);
     waitHandle          = handle;
 }
Exemplo n.º 2
0
 /// <include file='doc\WaitHandle.uex' path='docs/doc[@for="WaitHandle.WaitHandle"]/*' />
 public WaitHandle()
 {
     waitHandleProtector = null;
     waitHandle          = InvalidHandle;
 }