public override Task <CloneResponse> Clone(CloneRequest request, ServerCallContext context) { RemoteValue value = valueStore.GetObject(request.Value.Id); RemoteValue cloneResult = value.Clone(); var response = new CloneResponse(); if (cloneResult != null) { response.CloneResult = GrpcFactoryUtils.CreateValue(cloneResult, valueStore.AddObject(cloneResult)); } return(Task.FromResult(response)); }
public IVariableInformation Clone(FormatSpecifier formatSpecifier) { RemoteValue clonedValue = _remoteValue.Clone(); if (clonedValue == null) { return(null); } IVariableInformation clonedVarInfo = _varInfoBuilder.Create(clonedValue, DisplayName, formatSpecifier); clonedVarInfo.FallbackValueFormat = FallbackValueFormat; return(clonedVarInfo); }
public RemoteValue Clone() => remoteProxy.Clone();
public virtual RemoteValue Clone() { return(value.Clone()); }