/// <summary> /// 获取InvitationBuilder实例 /// </summary> /// <returns></returns> public static InvitationBuilder Instance() { if (_defaultInstance == null) { lock (lockObject) { if (_defaultInstance == null) { _defaultInstance = new InvitationBuilder(); Initialize(); } } } return(_defaultInstance); }
/// <summary> /// 获取InvitationBuilder实例 /// </summary> /// <returns></returns> public static InvitationBuilder Instance() { if (_defaultInstance == null) { lock (lockObject) { if (_defaultInstance == null) { _defaultInstance = new InvitationBuilder(); //从 \Languages\zh-CN\InvitationTemplates.xml 及 \Applications\[ApplicationKey]\Languages\zh-CN\Invitations\InvitationTemplates.xml 加载请求模板 InvitationTemplates = LoadInvitationTemplates(); } } } return _defaultInstance; }
/// <summary> /// 获取InvitationBuilder实例 /// </summary> /// <returns></returns> public static InvitationBuilder Instance() { if (_defaultInstance == null) { lock (lockObject) { if (_defaultInstance == null) { _defaultInstance = new InvitationBuilder(); //从 \Languages\zh-CN\InvitationTemplates.xml 及 \Applications\[ApplicationKey]\Languages\zh-CN\Invitations\InvitationTemplates.xml 加载请求模板 InvitationTemplates = LoadInvitationTemplates(); } } } return(_defaultInstance); }
/// <summary> /// 获取解析过的请求内容 /// </summary> /// <param name="status">请求处理状态</param> /// <returns>解析过的请求内容</returns> public string GetResolvedBody() { return(InvitationBuilder.Instance().Resolve(this, Status)); }