Esempio n. 1
0
        private void VirtualFile_ReadComplete(object sender, EventArgs e)
        {
            if (!Server.IsConnected)
            {
                return;
            }

            ClipboardVirtualFileData.FileAttributes file = sender as ClipboardVirtualFileData.FileAttributes;
            Server.RequestCloseStream(file.RemoteAccessToken, file.FileRequestId);
        }
 /// <summary>
 /// Creates an IStream that uses a network machine as the source of data
 /// </summary>
 /// <param name="file"></param>
 internal ManagedRemoteIStream(ClipboardVirtualFileData.FileAttributes file)
 {
     SourceVirtualFile = file;
     SourceVirtualFile.CloseStreamRequested += FileInfo_CloseStreamRequested;
 }