ifileinterface.cs
来自「WCF文件传输示例」· CS 代码 · 共 34 行
CS
34 行
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 + =
减小字号Ctrl + -
显示快捷键?