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