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; }
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; }