Exemplo n.º 1
0
 public void PostEffect(DispatchedAction dispatchedAction, IStore <ImageLoaderState> store)
 {
     switch (dispatchedAction.Action)
     {
     case InitializeAction <ImageLoaderState> :
         OnInitialized(store);
         break;
     }
 }
        public bool PreEffect(DispatchedAction dispatchedAction, IStore <ImageLoaderState> store)
        {
            if (dispatchedAction.IsCanceled)
            {
                return(true);
            }
            if (dispatchedAction.Action is not ImageRequestAction action)
            {
                return(true);
            }

            var(slot, url) = action;
            LaunchRequest(slot, url, store);
            return(true);
        }
Exemplo n.º 3
0
 public bool PreEffect(DispatchedAction dispatchedAction, IStore <ImageLoaderState> store) => true;