Exemple #1
0
    private DecisionTreeLoader()
    {
        MethodReflection = Singleton.Instance <MethodReflection>();
        ThreadHelper     = Singleton.Instance <MultiThreadHelper>();

        EvaluatorType = typeof(Func <bool>);
        ActionType    = typeof(UnityAction);
    }
Exemple #2
0
 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;
        }
Exemple #4
0
        //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);
        }
Exemple #5
0
 public void AsyncCreateTree(IEnumerable <Vector3Int> vectors)
 {
     MultiThreadHelper.ThreadInvoke(CreateCallback, vectors);
 }
Exemple #6
0
 public void AsyncCreateNode(TreeInfo info)
 {
     MultiThreadHelper.ThreadInvoke(Callback, info);
 }