public QueryDeveloperFeatureFactory(IContainer container) { if (container == null) { throw new ArgumentNullException(nameof(container)); } _container = container; FeatureId = MyFeatureId; _queryFileService = _container.GetInstance <IQueryFileService>(); }
/// <summary> /// 初始化一个<see cref="FileController"/>类型的实例 /// </summary> /// <param name="service">文件服务</param> /// <param name="queryService">文件查询服务</param> public FileController(IFileService service, IQueryFileService queryService) { FileService = service; QueryFileService = queryService; }