12345678910111213141516171819202122232425262728293031323334 |
- /*-------------------------------------------------------------------------
- * 功能描述: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
- {
- /// <summary>
- /// 加载默认服务
- /// </summary>
- public static void LoadServices()
- {
- string fileName = Path.Combine(AppBaseInfo.AppRunPath, @"MBIResource\Services\Services.xml");
- if (File.Exists(fileName))
- {
- ServiceLocator.Current.LoadServices(fileName);
- }
- }
- }
- }
|