< Summary

Class:Decentraland.Bff.HttpEndpointsCodeGen
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Decentraland/bff/HttpEndpointsService.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:33
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
RegisterService[Context](...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Decentraland/bff/HttpEndpointsService.gen.cs

#LineLine coverage
 1// AUTOGENERATED, DO NOT EDIT
 2// Type definitions for server implementations of ports.
 3// package: decentraland.bff
 4// file: decentraland/bff/http_endpoints.proto
 5using System.Collections.Generic;
 6using System.Threading;
 7using Cysharp.Threading.Tasks;
 8using Google.Protobuf;
 9using rpc_csharp.protocol;
 10using rpc_csharp;
 11using Google.Protobuf.WellKnownTypes;
 12namespace Decentraland.Bff {
 13public interface IHttpEndpoints<Context>
 14{
 15
 16  UniTask<AboutResponse> About(Empty request, Context context, CancellationToken ct);
 17
 18}
 19
 20public static class HttpEndpointsCodeGen
 21{
 22  public const string ServiceName = "HttpEndpoints";
 23
 24  public static void RegisterService<Context>(RpcServerPort<Context> port, IHttpEndpoints<Context> service)
 25  {
 026    var result = new ServerModuleDefinition<Context>();
 27
 028    result.definition.Add("About", async (payload, context, ct) => { var res = await service.About(Empty.Parser.ParseFro
 29
 030    port.RegisterModule(ServiceName, (port) => UniTask.FromResult(result));
 031  }
 32}
 33}