Ejemplo n.º 1
0
        protected override void Load(LoaderParameters parameters)
        {
            status = ContentAsyncStatus.Loading;

            if (!ValidateLoadOperation(parameters))
            {
                status = ContentAsyncStatus.Failed;

                OnLoadCompleted();
                return;
            }

            var job = GetLoadJob(parameters);

            if (job == null)
            {
                status = ContentAsyncStatus.Failed;
                return;
            }

            handler.Schedule(this, job);
        }