| 123456789101112131415161718192021222324252627282930 | using System;using System.ServiceModel;using Aitex.Core.RT.Log;using Aitex.Core.RT.OperationCenter;namespace MECF.Framework.Common.OperationCenter{    [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("Call {0}, encountered an unprocessed WCF operation exception", operationName), ex);            }        }    }}
 |