示例#1
0
        // TODO:

        public IRequestResult Hydrate(IHydrationObject obj)
        {
            if (obj.IsNotNull() && obj.State.IsNotNull())
            {
                Messages = obj.State.Deserialize <StateContainer>().Messages;
            }
            return(RequestResult.Create());
        }
示例#2
0
 public override IRequestResult Hydrate(IHydrationObject memento)
 {
     if (memento.IsNotNull() && memento.State.IsNotNull())
     {
         Units = memento.State.Deserialize <List <IProcessableUnit> >();
     }
     return(RequestResult.Create());
 }
示例#3
0
 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();
 }
示例#4
0
 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());
 }
示例#5
0
 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();
 }
示例#7
0
 // 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();
 }