Home » Developing U++ » U++ Developers corner » RPC_METHOD how to "define"  
	
		
		
			| Re: RPC_METHOD how to "define" [message #47601 is a reply to message #47578] | 
			Sun, 05 February 2017 11:02    | 
		 
		
			
				
				
				
					
						  
						NilaT
						 Messages: 70 Registered: November 2011  Location: Austria
						
					 | 
					Member  | 
					 | 
		 
		 
	 | 
 
	
		Thanks guys for your help. 
Mirek, my intention why I want it as member functions is, because my RPC Methods all need a database connection, so in one class function I open the connection and keep it open. And because I don't want to pass this PostgreSqlSession to all RPC Functions, I want to use a member. 
Furthermore I need an Instance of a very big class and don't want to pass this either, so a member seems to be the best solution in my opinion. 
 
PS: Maybe you can explain this code? I mean... it compiles, but I really don't know what this does: 
[](RpcData& rpc){Single<MyRpcClass>().Status(rpc);}); 
		
		
		[Updated on: Sun, 05 February 2017 13:49] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 10:35:25 CET 2025 
 Total time taken to generate the page: 0.00690 seconds 
 |