internal LuaVMWrapper(IMainThreadExecutor executor, IGlobalMemory memory) { m_executor = executor; m_memory = memory; m_executor.RegisterFunctions(c_functions); m_luaTop = m_executor[c_getTop, -1](); }
internal FunctionsAccessor(IMainThreadExecutor executor, IGlobalMemory memory, ILuaScriptExecutor scriptExecutor) { m_executor = executor; m_memory = memory; m_luaExecutor = scriptExecutor; m_buffer = m_memory.AllocateAutoScalingShared(c_dataBufferSize); }
public LibraryItemDetailsPagePresenterImpl(IMainThreadExecutor mainThreadExecutor, ILog log, FindLibraryItemUseCase findLibraryItemUseCase, AddToFavoriteUseCase addToFavoriteUseCase) { MainThreadExecutor = mainThreadExecutor; Log = log; FindLibraryItemUseCase = findLibraryItemUseCase; AddToFavoriteUseCase = addToFavoriteUseCase; }
public PictureRequestControllerImpl(ILog log, IMainThreadExecutor mainThreadExecutor, PictureRequestsQueue requestsQueue) { Log = log; MainThreadExecutor = mainThreadExecutor; RequestsQueue = requestsQueue; RequestsQueue.OnImageReceived += OnRequestsQueueImageReceived; }
public ExecuteTests() { _executor = Substitute.For <IMainThreadExecutor>(); _executor.When(x => x.BeginOnUIThread(Arg.Any <Action>())).Do(x => ((Action)x[0]).Invoke()); _executor.When(x => x.OnUIThreadAsync(Arg.Any <Action>())).Do(x => ((Action)x[0]).Invoke()); _executor.When(x => x.OnUIThread(Arg.Any <Action>())).Do(x => ((Action)x[0]).Invoke()); _action = Substitute.For <Action>(); Execute.Initialize(_executor); }
public LibraryPagePresenterImpl(IMainThreadExecutor mainThreadExecutor, ILog log, IConfiguration configuration, SearchLibraryRequestUseCase searchLibraryRequestUseCase, AddToFavoriteUseCase addToFavoriteUseCase) { MainThreadExecutor = mainThreadExecutor; Log = log; Configuration = configuration; SearchLibraryRequestUseCase = searchLibraryRequestUseCase; AddToFavoriteUseCase = addToFavoriteUseCase; SearchQueryDelaySubmitTimer = new Timer(Configuration.SearchQuerySubmitDelay); SearchQueryDelaySubmitTimer.AutoReset = false; SearchQueryDelaySubmitTimer.Elapsed += (s, e) => MainThreadExecutor.Execute(() => OnViewRefreshRequested()); }
public void Init(IExtensionLogger extensionLogger, IMainThreadExecutor mainThreadExecutor) { Logger = extensionLogger; MainThreadExecutor = mainThreadExecutor; }
public ProfilePagePresenterImpl(IMainThreadExecutor mainThreadExecutor, ILog log, GetCurrentUserProfile getCurrentUserProfile) { MainThreadExecutor = mainThreadExecutor; Log = log; GetCurrentUserProfile = getCurrentUserProfile; }
/// <summary> /// Initializes <see cref="Execute"/> class. /// </summary> /// <param name="executor">Instance to initialize.</param> public static void Initialize(IMainThreadExecutor executor) { _currentExecutor = executor ?? throw new ArgumentNullException(); }