using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ZTImage.Configuration; namespace RichCreator.Utilitys { /// /// 外部服务提供器 /// public class ServiceProvider { /// /// 微信通知 /// /// /// public bool NotificationWechat(string message) { var config=ConfigHelper.GetInstance(); if (config.NotificationWechat) { //发信息 } return true; } #region singleton private static ServiceProvider instance = null; private static object lockHelper = new object(); public static ServiceProvider Instance { get { if (instance == null) { lock (lockHelper) { if (instance == null) { instance = new ServiceProvider(); } } } return instance; } } #endregion } }