Skip to content

Commit

Permalink
Added config parameter to the Move method
Browse files Browse the repository at this point in the history
  • Loading branch information
alelom committed Sep 13, 2019
1 parent 3d74fac commit c022d95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BHoM_Adapter/BHoMAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ public virtual IEnumerable<object> Pull(IRequest request, Dictionary<string, obj

/***************************************************/

public virtual bool Move(BHoMAdapter to, IRequest request, Dictionary<string, object> config = null)
public virtual bool Move(BHoMAdapter to, IRequest request, Dictionary<string, object> pullConfig = null, Dictionary<string, object> pushConfig = null)
{
string tag = "";
if (request is FilterRequest)
tag = (request as FilterRequest).Tag;

IEnumerable<object> objects = this.Pull(request, config);
IEnumerable<object> objects = Pull(request, pullConfig);
int count = objects.Count();
return to.Push(objects.Cast<IObject>(), tag).Count() == count;
return to.Push(objects.Cast<IObject>(), tag, pushConfig).Count() == count;
}

/***************************************************/
Expand Down

0 comments on commit c022d95

Please sign in to comment.