private DecisionTreeLoader() { MethodReflection = Singleton.Instance <MethodReflection>(); ThreadHelper = Singleton.Instance <MultiThreadHelper>(); EvaluatorType = typeof(Func <bool>); ActionType = typeof(UnityAction); }
private bool IsMainThread() { if (ThreadHelper == null) { ThreadHelper = Singleton.Instance <MultiThreadHelper>(); } return(ThreadHelper.IsMainThreadRunning); }
public PlanitPokerService( MultiThreadHelper multiThreadHelper, IRoomRepository roomRepository, IStoryRepository storyRepository , IErrorService errorService, IErrorContainer errorContainer ) { _multiThreadHelper = multiThreadHelper; _roomRepository = roomRepository; _storyRepository = storyRepository; _errorService = errorService; _errorContainer = errorContainer; }
//private static IServiceProvider _serviceProvider; //front endpoints public PlanitPokerHub(MultiThreadHelper multiThreadHelper, IStringValidator stringValidator, IPlanitPokerService planitPokerService, IPlanitApiHelper apiHealper, IJWTService jwtService, IJWTHasher hasher, IErrorService errorService , IErrorContainer errorContainer) { _multiThreadHelper = multiThreadHelper; _stringValidator = stringValidator; _planitPokerService = planitPokerService; _jwtService = jwtService; _hasher = hasher; _errorService = errorService; _errorContainer = errorContainer; _logger = null; //todo _apiHealper = apiHealper; _apiHealper.InitByHub(this); }
public void AsyncCreateTree(IEnumerable <Vector3Int> vectors) { MultiThreadHelper.ThreadInvoke(CreateCallback, vectors); }
public void AsyncCreateNode(TreeInfo info) { MultiThreadHelper.ThreadInvoke(Callback, info); }