1234567891011121314151617181920212223242526272829303132333435363738 |
- 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>(T instance, string keyPrefix = null) where T : class
- {
- if (InnerOperationManager != null)
- InnerOperationManager.Subscribe<T>(instance, keyPrefix);
- }
- public static void Subscribe(string key, Func<string, object[], bool> 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);
- }
- }
- }
|