Exemple #1
0
 protected Entry(Bundle.HTTPVerb method, IKey key, DateTimeOffset?when, Resource resource)
 {
     if (resource != null)
     {
         key.ApplyTo(resource);
     }
     else
     {
         this.Key = key;
     }
     this.Resource = resource;
     this.Method   = method;
     this.When     = when ?? DateTimeOffset.Now;
     this.State    = EntryState.Undefined;
 }
Exemple #2
0
 private Interaction(Bundle.HTTPVerb method, IKey key, DateTimeOffset? when, Resource resource)
 {
     if (resource != null)
     {
         key.ApplyTo(resource);
     }
     else
     {
         this.Key = key;
     }
     this.Resource = resource;
     this.Method = method;
     this.When = when ?? DateTimeOffset.Now;
     this.State = InteractionState.Undefined;
 }