Ejemplo n.º 1
0
 internal static void CheckHandle(this AMSIHandleSession handleSession)
 {
     if (handleSession.IsInvalid)
     {
         throw AMSIException.FailedToInitializeSession();
     }
 }
Ejemplo n.º 2
0
 internal ScanContext(
     AMSIClient client
     , AMSIHandleSession sessionHandle
     , string contentName
     , ContentType contentType
     , FileType contentFileType
     , long size
     , string hash)
 {
     Client          = client;
     SessionHandle   = sessionHandle;
     ContentName     = contentName;
     ContentType     = contentType;
     ContentFileType = contentFileType;
     Size            = size;
     Hash            = hash;
 }