(
schema: Schema, include_services: bool = False
)
| 168 | |
| 169 | |
| 170 | def csharp_output_paths( |
| 171 | schema: Schema, include_services: bool = False |
| 172 | ) -> List[Tuple[str, str]]: |
| 173 | namespace_name = csharp_namespace_for_schema(schema) |
| 174 | namespace_path = namespace_name.replace(".", "/") if namespace_name else "" |
| 175 | model_file = csharp_module_file_name(schema) |
| 176 | model_path = f"{namespace_path}/{model_file}" if namespace_path else model_file |
| 177 | outputs = [(model_path, f"schema module {csharp_module_class_name(schema)}")] |
| 178 | if include_services: |
| 179 | for service in schema.services: |
| 180 | file_name = f"{service.name}Grpc.cs" |
| 181 | path = f"{namespace_path}/{file_name}" if namespace_path else file_name |
| 182 | outputs.append((path, f"service {service.name}")) |
| 183 | return outputs |
| 184 | |
| 185 | |
| 186 | def csharp_top_level_symbols( |
no test coverage detected