Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public RemoteValue Clone() => remoteProxy.Clone();
 public virtual RemoteValue Clone()
 {
     return(value.Clone());
 }