예제 #1
0
 // Two primary constructors
 public ReplicaClientComputed(ComputedOptions options, IReplicaComputed <T> source, InterceptedInput input)
     : this(options, source.Replica, input, source.Version)
 {
     ((IComputedImpl)this).AddUsed((IComputedImpl)source);
     TrySetOutput(source.Output);
     if (!source.IsConsistent)
     {
         Invalidate();
     }
 }
예제 #2
0
 // Two primary constructors
 public ReplicaMethodComputed(ComputedOptions options, ComputeMethodInput input, IReplicaComputed <T> source)
     : this(source.Replica, options, input, source.Version)
 {
     ((IComputedImpl)this).AddUsed((IComputedImpl)source);
     // ReSharper disable once VirtualMemberCallInConstructor
     TrySetOutput(source.Output);
     if (!source.IsConsistent())
     {
         Invalidate();
     }
 }