Esempio n. 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;
		}
Esempio n. 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);
 }
Esempio n. 3
0
 internal virtual void ImportState(MicroChannelState state)
 {
     Paid      = state.Paid;
     Payment   = state.Payment;
     Refund    = state.Refund;
     Sequence  = state.Sequence;
     Arguments = state.Arguments;
 }
Esempio n. 4
0
 public PayeeEndpoint(MicroChannelState state)
     : base(state.Arguments)
 {
     ImportState(state);
 }
Esempio n. 5
0
		internal virtual void ImportState(MicroChannelState state)
		{
			Paid = state.Paid;
			Payment = state.Payment;
			Refund = state.Refund;
			Sequence = state.Sequence;
			Arguments = state.Arguments;
		}
Esempio n. 6
0
		public PayerEndpoint(MicroChannelState state)
			: base(state.Arguments)
		{
			ImportState(state);
		}