internal static InvokeQuorumLossState FromBytes(BinaryReader br) { InvokeQuorumLossState state = new InvokeQuorumLossState(); // Note: the type of command (an Enum serialized as Int32) was already read by caller state.Read(br); return(state); }
// test only internal override bool VerifyEquals(ActionStateBase other) { InvokeQuorumLossState state = other as InvokeQuorumLossState; if (state == null) { return(false); } if (!base.VerifyEquals(other)) { return(false); } return(this.Info.VerifyEquals(state.Info)); }
public InvokeQuorumLossAction(IReliableStateManager stateManager, IStatefulServicePartition partition, InvokeQuorumLossState state, PartitionSelector partitionSelector, QuorumLossMode quorumLossMode, TimeSpan quorumLossDuration, TimeSpan requestTimeout, TimeSpan operationTimeout) : base(stateManager, partition, state, requestTimeout, operationTimeout) { ThrowIf.Null(partitionSelector, "partitionSelector"); this.PartitionSelector = partitionSelector; this.QuorumLossMode = quorumLossMode; this.QuorumLossDuration = quorumLossDuration; }