/*------------------------------------------------------------------------- * 功能描述:ServiceSetting * 作者:xulisong * 创建时间: 2019/1/18 11:05:09 * 版本号:v1.0 * -------------------------------------------------------------------------*/ using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; using SAGA.DotNetUtils; using SAGA.DotNetUtils.Service; namespace SAGA.RevitUtils.ExtendInterface { public class ServiceSetting { /// /// 加载默认服务 /// public static void LoadServices() { string fileName = Path.Combine(AppBaseInfo.AppRunPath, @"MBIResource\Services\Services.xml"); if (File.Exists(fileName)) { ServiceLocator.Current.LoadServices(fileName); } } } }