C# Класс Grpc.Reflection.SymbolRegistry

Registry of protobuf symbols
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
FileByName ( string filename ) : FileDescriptor

Gets file descriptor for given file name (including package path). Returns null if not found.

FileContainingSymbol ( string symbol ) : FileDescriptor

Gets file descriptor that contains definition of given symbol full name (including package path). Returns null if not found.

FromFiles ( IEnumerable fileDescriptors ) : SymbolRegistry

Creates a symbol registry from the specified set of file descriptors.

Приватные методы

Метод Описание
SymbolRegistry ( FileDescriptor>.Dictionary filesByName, FileDescriptor>.Dictionary filesBySymbol ) : System.Collections.Generic

Описание методов

FileByName() публичный Метод

Gets file descriptor for given file name (including package path). Returns null if not found.
public FileByName ( string filename ) : FileDescriptor
filename string
Результат FileDescriptor

FileContainingSymbol() публичный Метод

Gets file descriptor that contains definition of given symbol full name (including package path). Returns null if not found.
public FileContainingSymbol ( string symbol ) : FileDescriptor
symbol string
Результат FileDescriptor

FromFiles() публичный статический Метод

Creates a symbol registry from the specified set of file descriptors.
public static FromFiles ( IEnumerable fileDescriptors ) : SymbolRegistry
fileDescriptors IEnumerable The set of files to include in the registry. Must not contain null values.
Результат SymbolRegistry