예제 #1
0
 public static DatacenterState ReduceSelectDatacenterNodeFailureAction(DatacenterState state, SelectDatacenterNodeFailureAction action) =>
 new DatacenterState(state.Nodes, null, false, action.ErrorMessage);
예제 #2
0
 private void DatacenterState_StateChanged(object sender, DatacenterState e)
 {
     StateHasChanged();
 }
예제 #3
0
 public static DatacenterState ReduceSelectDatacenterNodeSuccessAction(DatacenterState state, SelectDatacenterNodeSuccessAction action) =>
 new DatacenterState(state.Nodes, action.SelectedNode, false, null);
예제 #4
0
 public static DatacenterState ReduceSelectDatacenterNodeAction(DatacenterState state, SelectDatacenterNodeAction action) =>
 new DatacenterState(state.Nodes, null, true, null);
예제 #5
0
 public static DatacenterState ReduceFetchDatacenterFailureAction(DatacenterState state, FetchDatacenterFailureAction action) =>
 new DatacenterState(null, state.SelectedNode, false, action.ErrorMessage);
예제 #6
0
 public static DatacenterState ReduceFetchDatacenterSuccessAction(DatacenterState state, FetchDatacenterSuccessAction action) =>
 new DatacenterState(action.Nodes.ToArray(), state.SelectedNode, false, null);
예제 #7
0
 public static DatacenterState ReduceFetchDatacenterAction(DatacenterState state, FetchDatacenterAction _) =>
 new DatacenterState(null, state.SelectedNode, true, null);