⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ifileinterface.cs

📁 WCF文件传输示例
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;
using System.IO;

namespace FileInterface
{
    [ServiceContract]
    public interface IFileInterface
    {
        [OperationContract(Action = "UploadFile")]
        void UploadFile(FileUploadMessage request);

        [OperationContract( )]
        void Test(string msg);
    }


    [MessageContract]
    public class FileUploadMessage
    {
        [MessageHeader(MustUnderstand = true)]
        public string SavePath;

        [MessageHeader(MustUnderstand = true)]
        public string FileName;

        [MessageBodyMember(Order = 1)]
        public Stream FileData;

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -