Beispiel #1
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 public static ServerServiceDefinition BindService(MasterFolioSvcBase serviceImpl)
 {
     return(ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_RequestMasterFolio, serviceImpl.RequestMasterFolio)
            .AddMethod(__Method_RemoveMasterFolio, serviceImpl.RemoveMasterFolio)
            .AddMethod(__Method_FolioSwap, serviceImpl.FolioSwap)
            .AddMethod(__Method_GetMasterFolioAssignments, serviceImpl.GetMasterFolioAssignments).Build());
 }
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(MasterFolioSvcBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_RequestMasterFolio, serviceImpl.RequestMasterFolio)
            .AddMethod(__Method_RemoveMasterFolio, serviceImpl.RemoveMasterFolio)
            .AddMethod(__Method_AtomicFolioChargeSwap, serviceImpl.AtomicFolioChargeSwap)
            .AddMethod(__Method_AuthorizationIncrease, serviceImpl.AuthorizationIncrease)
            .AddMethod(__Method_UpdateClientFolios, serviceImpl.UpdateClientFolios)
            .AddMethod(__Method_IsMasterPaysCheck, serviceImpl.IsMasterPaysCheck)
            .AddMethod(__Method_RemoveMasterOrGroupGuaranteeFromClient, serviceImpl.RemoveMasterOrGroupGuaranteeFromClient).Build());
 }