< Summary

Class:Decentraland.Bff.BffAuthenticationServiceCodeGen
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Decentraland/bff/AuthenticationServiceService.gen.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:35
Line coverage:0% (0 of 5)
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/AuthenticationServiceService.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/authentication_service.proto
 5using System.Collections.Generic;
 6using System.Threading;
 7using Cysharp.Threading.Tasks;
 8using Google.Protobuf;
 9using rpc_csharp.protocol;
 10using rpc_csharp;
 11namespace Decentraland.Bff {
 12public interface IBffAuthenticationService<Context>
 13{
 14
 15  UniTask<GetChallengeResponse> GetChallenge(GetChallengeRequest request, Context context, CancellationToken ct);
 16
 17  UniTask<WelcomePeerInformation> Authenticate(SignedChallenge request, Context context, CancellationToken ct);
 18
 19}
 20
 21public static class BffAuthenticationServiceCodeGen
 22{
 23  public const string ServiceName = "BffAuthenticationService";
 24
 25  public static void RegisterService<Context>(RpcServerPort<Context> port, IBffAuthenticationService<Context> service)
 26  {
 027    var result = new ServerModuleDefinition<Context>();
 28
 029    result.definition.Add("GetChallenge", async (payload, context, ct) => { var res = await service.GetChallenge(GetChal
 030    result.definition.Add("Authenticate", async (payload, context, ct) => { var res = await service.Authenticate(SignedC
 31
 032    port.RegisterModule(ServiceName, (port) => UniTask.FromResult(result));
 033  }
 34}
 35}