// TODO: public IRequestResult Hydrate(IHydrationObject obj) { if (obj.IsNotNull() && obj.State.IsNotNull()) { Messages = obj.State.Deserialize <StateContainer>().Messages; } return(RequestResult.Create()); }
public override IRequestResult Hydrate(IHydrationObject memento) { if (memento.IsNotNull() && memento.State.IsNotNull()) { Units = memento.State.Deserialize <List <IProcessableUnit> >(); } return(RequestResult.Create()); }
public IRequestResult Hydrate(IHydrationObject obj) { if (obj.IsNotNull() && obj.State.IsNotNull()) { var container = obj.State.Deserialize<StateContainer>(); Target = container.Target; MimeType = container.MimeType; } return RequestResult.Create(); }
public IRequestResult Hydrate(IHydrationObject obj) { if (obj.IsNotNull() && obj.State.IsNotNull()) { var container = obj.State.Deserialize <StateContainer>(); Target = container.Target; MimeType = container.MimeType; } return(RequestResult.Create()); }
public virtual IRequestResult Hydrate(IHydrationObject obj) { if (obj.IsNotNull() && obj.State.IsNotNull()) { StateContainer container = Hydrating(obj); BundlePrototype = container.BundlePrototype; FailureHandlerSet = container.FailureHandlers.Select(def => HydrationService.Restore <IFailureHandler>(def)).ToArray(); } // In case was blocked, ensure available again Blocked = false; return(RequestResult.Create()); }
public override IRequestResult Hydrate(IHydrationObject memento) { if (memento.IsNotNull() && memento.State.IsNotNull()) Units = memento.State.Deserialize<List<IProcessableUnit>>(); return RequestResult.Create(); }
// TODO: public IRequestResult Hydrate(IHydrationObject obj) { if (obj.IsNotNull() && obj.State.IsNotNull()) Messages = obj.State.Deserialize<StateContainer>().Messages; return RequestResult.Create(); }
public virtual IRequestResult Hydrate(IHydrationObject obj) { if (obj.IsNotNull() && obj.State.IsNotNull()) { StateContainer container = Hydrating(obj); BundlePrototype = container.BundlePrototype; FailureHandlerSet = container.FailureHandlers.Select(def => HydrationService.Restore<IFailureHandler>(def)).ToArray(); } // In case was blocked, ensure available again Blocked = false; return RequestResult.Create(); }