src/SyncTool.Synchronization/main/Synchronizer.cs
/// <summary>
/// Tries to apply the specified sync action to the change grpah
/// </summary>
/// <returns>Retruns true if the action could be added to the graph, otherwise return false</returns>
Tries to apply the specified sync action to the change grpah
Tries to apply the specified sync action to the change grpah
bool TryApplySyncAction(Graph<IFileReference> changeGraph, SyncAction action)
        {
            if (changeGraph.Contains(action.FromVersion) && changeGraph.Contains(action.ToVersion))
            {
                changeGraph.AddEdge(action.FromVersion, action.ToVersion);
                return true;
            }
            return false;
        }
bool TryApplySyncAction ( Graph < IFileReference > changeGraph , SyncAction action ) { if ( changeGraph . Contains ( action . FromVersion ) && changeGraph . Contains ( action . ToVersion ) ) { changeGraph . AddEdge ( action . FromVersion , action . ToVersion ) ; return true ; } return false ; }
Tries to apply the specified sync action to the change grpah
Tries to apply the specified sync action to the change grpah
Retruns true if the action could be added to the graph, otherwise return false
Retruns true if the action could be added to the graph otherwise return false
changeGraph
Graph<IFileReference>
action
SyncAction