internal override void ImportState(MicroChannelState state) { if(!state.PayerState) throw new FormatException("This micro channel state is the payee's copy"); base.ImportState(state); Fund = state.Fund; }
internal override void ImportState(MicroChannelState state) { if (state.PayerState) { throw new FormatException("This micro channel state is the payer's copy"); } base.ImportState(state); }
internal virtual void ImportState(MicroChannelState state) { Paid = state.Paid; Payment = state.Payment; Refund = state.Refund; Sequence = state.Sequence; Arguments = state.Arguments; }
public PayeeEndpoint(MicroChannelState state) : base(state.Arguments) { ImportState(state); }
public PayerEndpoint(MicroChannelState state) : base(state.Arguments) { ImportState(state); }