< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ClientBffAuthenticationService(...)0%2100%
GetChallenge(...)0%2100%
Authenticate(...)0%2100%

File(s)

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

#LineLine coverage
 1
 2// AUTOGENERATED, DO NOT EDIT
 3// Type definitions for server implementations of ports.
 4// package: decentraland.bff
 5// file: decentraland/bff/authentication_service.proto
 6using Cysharp.Threading.Tasks;
 7using rpc_csharp;
 8
 9namespace Decentraland.Bff {
 10public interface IClientBffAuthenticationService
 11{
 12  UniTask<GetChallengeResponse> GetChallenge(GetChallengeRequest request);
 13
 14  UniTask<WelcomePeerInformation> Authenticate(SignedChallenge request);
 15}
 16
 17public class ClientBffAuthenticationService : IClientBffAuthenticationService
 18{
 19  private readonly RpcClientModule module;
 20
 021  public ClientBffAuthenticationService(RpcClientModule module)
 22  {
 023      this.module = module;
 024  }
 25
 26
 27  public UniTask<GetChallengeResponse> GetChallenge(GetChallengeRequest request)
 28  {
 029      return module.CallUnaryProcedure<GetChallengeResponse>("GetChallenge", request);
 30  }
 31
 32  public UniTask<WelcomePeerInformation> Authenticate(SignedChallenge request)
 33  {
 034      return module.CallUnaryProcedure<WelcomePeerInformation>("Authenticate", request);
 35  }
 36
 37}
 38}