public RemoteTarget CreateTarget(string filename)
        {
            CreateTargetResponse response = null;

            if (connection.InvokeRpc(() =>
            {
                response = client.CreateTarget(
                    new CreateTargetRequest {
                    Filename = filename
                });
            }))
            {
                return(sbTargetFactory.Create(connection, response.GrpcSbTarget));
            }
            return(null);
        }
Beispiel #2
0
        public RemoteTarget GetTarget()
        {
            GetTargetResponse response = null;

            if (connection.InvokeRpc(() =>
            {
                response = client.GetTarget(
                    new GetTargetRequest()
                {
                    Process = grpcSbProcess
                });
            }))
            {
                return(targetFactory.Create(connection, response.Target));
            }
            return(null);
        }