[ServiceContract(Namespace = "http://www.guruetech.com")]
public interface IService
{
[OperationContract]
UploadResult Upload(Stream itemStream); // succeeded!
[OperationContract]
UploadResult Upload(Stream itemStream, string theParameter); // failed!!!
}
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, InstanceContextMode = InstanceContextMode.PerCall)]
public class Service : IService
{
public UploadResult Upload(Stream itemStream)
{
}
public UploadResult Upload(Stream itemStream, string theParameter) { } // failed!!!
}
答案 0 :(得分:2)