wcf 配置时间:2023-03-09 16:13:28 wcf 开发 [ServiceContract]-----接口定义1 public interface ILog { [OperationContract]------接口定义1 List<LogEntity> GetAll(); [OperationContract] List<LogEntity> GetMonthLog(string year, string month); } 1和2是必须的 1、端口开放(入站规则) 2、服务启动 3、引用服务