internal static RestartPartitionState FromBytes(BinaryReader br)
        {
            RestartPartitionState state = new RestartPartitionState();

            // 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)
        {
            RestartPartitionState state = other as RestartPartitionState;

            if (state == null)
            {
                return(false);
            }

            if (!base.VerifyEquals(other))
            {
                return(false);
            }

            return(this.Info.VerifyEquals(state.Info));
        }
Beispiel #3
0
        public RestartPartitionAction(IReliableStateManager stateManager, IStatefulServicePartition partition, RestartPartitionState state, PartitionSelector partitionSelector, RestartPartitionMode restartPartitionMode, TimeSpan requestTimeout, TimeSpan operationTimeout)
            : base(stateManager, partition, state, requestTimeout, operationTimeout)
        {
            ThrowIf.Null(partitionSelector, "partitionSelector");

            this.PartitionSelector    = partitionSelector;
            this.RestartPartitionMode = restartPartitionMode;
        }