ValueTask IPlotOfferHandler.HandlePlotOfferAsync(RemotePlot plot, long plotterId) { if (PlotOfferPlotterId == plotterId && PlotOfferCallback != null) { PlotOfferCallback.SetResult(plot); } return(ValueTask.CompletedTask); }
public async Task OfferPlotAsync(RemotePlot plot) { long plotterId = long.Parse(Context.UserIdentifier); await((IPlotOfferHandler)PlotterService).HandlePlotOfferAsync(plot, plotterId); }