| | 1 | | // AUTOGENERATED, DO NOT EDIT |
| | 2 | | // Type definitions for server implementations of ports. |
| | 3 | | // package: decentraland.renderer.kernel_services |
| | 4 | | // file: decentraland/renderer/kernel_services/mutual_friends_kernel.proto |
| | 5 | | using System.Collections.Generic; |
| | 6 | | using System.Threading; |
| | 7 | | using Cysharp.Threading.Tasks; |
| | 8 | | using Google.Protobuf; |
| | 9 | | using rpc_csharp.protocol; |
| | 10 | | using rpc_csharp; |
| | 11 | | namespace Decentraland.Renderer.KernelServices { |
| | 12 | | public interface IMutualFriendsKernelService<Context> |
| | 13 | | { |
| | 14 | |
|
| | 15 | | UniTask<GetMutualFriendsResponse> GetMutualFriends(GetMutualFriendsRequest request, Context context, CancellationToken |
| | 16 | |
|
| | 17 | | } |
| | 18 | |
|
| | 19 | | public static class MutualFriendsKernelServiceCodeGen |
| | 20 | | { |
| | 21 | | public const string ServiceName = "MutualFriendsKernelService"; |
| | 22 | |
|
| | 23 | | public static void RegisterService<Context>(RpcServerPort<Context> port, IMutualFriendsKernelService<Context> service) |
| | 24 | | { |
| 0 | 25 | | var result = new ServerModuleDefinition<Context>(); |
| | 26 | |
|
| 0 | 27 | | result.definition.Add("GetMutualFriends", async (payload, context, ct) => { var res = await service.GetMutualFriends |
| | 28 | |
|
| 0 | 29 | | port.RegisterModule(ServiceName, (port) => UniTask.FromResult(result)); |
| 0 | 30 | | } |
| | 31 | | } |
| | 32 | | } |