using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Aitex.Core.RT.OperationCenter { public class OP { public static ICommonOperation InnerOperationManager { set; private get; } public static void Subscribe(T instance, string keyPrefix = null) where T : class { if (InnerOperationManager != null) InnerOperationManager.Subscribe(instance, keyPrefix); } public static void Subscribe(string key, Func op) { if (InnerOperationManager != null) InnerOperationManager.Subscribe(key, op); } public static void DoOperation(string operationName, params object[] args) { if (InnerOperationManager != null) InnerOperationManager.DoOperation(operationName, args); } public static void Record(string chamberId, string operation) { if (InnerOperationManager != null) InnerOperationManager.Record(chamberId, operation); } } }