using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QMTask.Client
{
///
/// 服务工具
///
public class ServiceUtil
{
///
/// 是否进行声音报警
///
public static bool SoundWarn { get; set; }
///
/// 是否进行邮件报警
///
public static bool MailWarn { get; set; }
///
/// 获取服务客户端
///
///
public static TaskService.TaskServiceClient GetTaskService()
{
TaskService.TaskServiceClient tsc = new TaskService.TaskServiceClient();
tsc.Login(ConfigurationManager.AppSettings["UseCredentialID"]);
return tsc;
}
}
}