Exemple #1
0
		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;
		}
Exemple #2
0
 internal override void ImportState(MicroChannelState state)
 {
     if (state.PayerState)
     {
         throw new FormatException("This micro channel state is the payer's copy");
     }
     base.ImportState(state);
 }
Exemple #3
0
 internal virtual void ImportState(MicroChannelState state)
 {
     Paid      = state.Paid;
     Payment   = state.Payment;
     Refund    = state.Refund;
     Sequence  = state.Sequence;
     Arguments = state.Arguments;
 }
Exemple #4
0
 public PayeeEndpoint(MicroChannelState state)
     : base(state.Arguments)
 {
     ImportState(state);
 }
Exemple #5
0
		internal virtual void ImportState(MicroChannelState state)
		{
			Paid = state.Paid;
			Payment = state.Payment;
			Refund = state.Refund;
			Sequence = state.Sequence;
			Arguments = state.Arguments;
		}
Exemple #6
0
		public PayerEndpoint(MicroChannelState state)
			: base(state.Arguments)
		{
			ImportState(state);
		}