12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ServiceModel;
- using Aitex.Core.RT.Event;
- using Aitex.Core.RT.Key;
- using Aitex.Triton160.Common.Interface;
- using Aitex.Core.RT.OperationCenter;
- using Aitex.Core.RT.Log;
- namespace Aitex.Triton160.RT.WCF
- {
- [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
- public class InvokeService : IInvokeService
- {
- public void DoOperation(string operationName, params object[] args)
- {
- try
- {
- if (KeyManager.Instance.IsExpired)
- {
- EV.PostMessage("System", EventEnum.DefaultWarning, "Software is expired. Can not do the operation");
- return;
- }
- OP.DoOperation(operationName, args);
- }
- catch (Exception ex)
- {
- LOG.Error(string.Format("调用{0},碰到未处理的WCF操作异常", operationName), ex);
- }
- }
- }
- }
|