Пример #1
0
    public void Upload(string ContentType, string Email, System.Guid FileGuid, string FileName, string HashCode, long Length, string SecurityCode, System.IO.Stream Stream)
    {
        RemoteFileDescriptor inValue = new RemoteFileDescriptor();

        inValue.ContentType  = ContentType;
        inValue.Email        = Email;
        inValue.FileGuid     = FileGuid;
        inValue.FileName     = FileName;
        inValue.HashCode     = HashCode;
        inValue.Length       = Length;
        inValue.SecurityCode = SecurityCode;
        inValue.Stream       = Stream;
        ((ITransferService)(this)).Upload(inValue);
    }
Пример #2
0
    public string Download(System.Uri RemoteFile, out string Email, out System.Guid FileGuid, out string FileName, out string HashCode, out long Length, out string SecurityCode, out System.IO.Stream Stream)
    {
        RemoteFileIdentifier inValue = new RemoteFileIdentifier();

        inValue.RemoteFile = RemoteFile;
        RemoteFileDescriptor retVal = ((ITransferService)(this)).Download(inValue);

        Email        = retVal.Email;
        FileGuid     = retVal.FileGuid;
        FileName     = retVal.FileName;
        HashCode     = retVal.HashCode;
        Length       = retVal.Length;
        SecurityCode = retVal.SecurityCode;
        Stream       = retVal.Stream;
        return(retVal.ContentType);
    }
Пример #3
0
 void ITransferService.Upload(RemoteFileDescriptor request)
 {
     base.Channel.Upload(request);
 }