コード例 #1
0
        internal static NodeCommandState FromBytes(BinaryReader br, ActionType type)
        {
            NodeCommandState state = new NodeCommandState(type);

            // Note: the type of command (an Enum serialized as Int32) was already read by caller
            state.Read(br);

            return(state);
        }
コード例 #2
0
        // test only
        internal override bool VerifyEquals(ActionStateBase other)
        {
            NodeCommandState state = other as NodeCommandState;

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

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

            return(this.Info.VerifyEquals(state.Info));
        }
コード例 #3
0
 public StopNodeFromFASAction(IReliableStateManager stateManager, IStatefulServicePartition partition, NodeCommandState state, IReliableDictionary <string, bool> stoppedNodeTable, TimeSpan requestTimeout, TimeSpan operationTimeout)
     : base(stateManager, partition, state, requestTimeout, operationTimeout)
 {
     this.StoppedNodeTable = stoppedNodeTable;
 }