【发布时间】:2011-05-17 19:28:23
【问题描述】:
我有这门课:
class UrlManagementServiceClient : System.ServiceModel.ClientBase<IUrlManagementService>, IUrlManagementService
ClientBase 实现了IDisposable 和ICommunicationObject。我也有这个界面:
interface IUrlManagementProxy : IUrlManagementService, ICommunicationObject, IDisposable
但我不能将 UrlManagementServiceClient 对象转换为 IUrlManagementProxy。有没有办法做到这一点?我想最终得到一个可以访问所有三个接口上的所有方法的对象。
【问题讨论】: