Chúng tôi có một ServiceContract hiệnViệc thêm phương thức vào WCF ServiceContract có phá vỡ các máy khách hiện tại không?
[ServiceContract(Namespace = "http://somesite.com/ConversationService")]
public interface IConversationService
{
[OperationContract(IsOneWay = true)]
void ProcessMessage(Message message);
[OperationContract(IsOneWay = true)]
void ProcessMessageResult(MessageResult result);
}
và chúng ta cần thêm một phương pháp để nó
[ServiceContract(Namespace = "http://somesite.com/ConversationService")]
public interface IConversationService
{
[OperationContract(IsOneWay = true)]
void ProcessMessage(Message message);
[OperationContract(IsOneWay = true)]
void ProcessMessageResult(MessageResult result);
[OperationContract(IsOneWay = true)]
void ProcessBlastMessage(BlastMessage blastMessage);
}
này sẽ phá vỡ bất kỳ khách hàng WCF hiện đang sử dụng dịch vụ này? Hoặc chúng ta sẽ phải cập nhật tất cả các máy khách wcf hiện tại?
EDIT: Dịch vụ này được sử dụng cả hai netTcpBinding và netMsmqBinding
Bạn nên chỉnh sửa câu hỏi để phản ánh rằng bạn quan tâm đến ràng buộc giao thức net.tcp và net.msmq. –