Exemple #1
0
        public override async Task <Reply> NewDataset(NewDatasetReq request, ServerCallContext context)
        {
            await _dataSetService.NewDataSet(request.Name, request.DomainName, request.OrganizationName, request.Attributes.Select(o => new DataSetAttribute
            {
                DataSetName = request.Name,
                DomainName  = request.DomainName,
                Name        = o.Name,
                Type        = o.Type
            }));

            return(new Reply
            {
                Success = true,
                Message = "Successfully"
            });
        }
 public override AsyncUnaryCall <Reply> NewDatasetAsync(NewDatasetReq request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default)
 {
     return(base.NewDatasetAsync(request, headers, deadline, cancellationToken));
 }