You are not logged in.
Pages: 1
This is the forum thread for commenting http://blog.synopse.info/post/2018/11/1 … s-and-Code
I've uploaded two set of slides from my presentations at EKON 22 :
- Object Pascal Clean Code Guidelines Proposal - https://www.slideshare.net/ArnaudBouche … at-ekon-22
- High Performance Object Pascal Code on Servers - https://www.slideshare.net/ArnaudBouche … at-ekon-22
with the associated source code at https://synopse.info/files/slides/EKON2 … ervers.zip
The WorkShop about "Getting REST with mORMot" has a corresponding new Samples folder in our repository.
See https://github.com/synopse/mORMot/tree/ … %20Service
Offline
Thanks! I was just waiting for this after seeing the commit of the new FishShop sample, because I'm interested in learning how to make my program running as a system service under both Windows and Linux
Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.
Offline
I'm looking at the samples ( 35 - Practical DDD ) I can see in DomConferenceServices.pas a function with the following declaration
function TConferenceBooking.RegisterAttendee(const Name: TAttendeeName;
const FirstName: TAttendeeFirstName; const Days: TSessionDays;
out Attendee: TAttendee): TRegisterAttendee;
AFAIU consuming the service from a mORMot client the out parameter Attendee: TAttendee will have the newly registered attendee data and the function result will be one of: raSuccess, raAlreadyRegistered or raPersistenceError, but if the service is consumed from a browser I suppose the data returned would be only the function result? Am I right? or the out variable is available as part of the JSON returned to the browser ?
Regards
Mocte
Offline
All out/var/result parameters are part of the returned JSON.
Check the doc about it.
See https://synopse.info/files/html/Synopse … #TITLE_396
Offline
So back to the basics
Thank you!
Offline
Pages: 1