www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how does vibe's PrivateAccessProxy work

reply "yawniek" <dlang srtnwz.com> writes:
can someone explain a bit how the  before hooks works in detail,

i mainly have problems understanding why ensureAuth in belows 
example refers to
"SampleService."  as an instance:

https://github.com/rejectedsoftware/vibe.d/blob/a1efc05c09135ca8aca21ccec72790ddfaca67c9/examples/web/source/app.d#L114

so how does PrivateAccessProxy work:
https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/internal/meta/funcattr.d#L225
Aug 30 2015
parent "Gary Willoughby" <dev nomad.so> writes:
On Monday, 31 August 2015 at 01:56:05 UTC, yawniek wrote:
 can someone explain a bit how the  before hooks works in detail,

 i mainly have problems understanding why ensureAuth in belows 
 example refers to
 "SampleService."  as an instance:

 https://github.com/rejectedsoftware/vibe.d/blob/a1efc05c09135ca8aca21ccec72790ddfaca67c9/examples/web/source/app.d#L114

 so how does PrivateAccessProxy work:
 https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/internal/meta/funcattr.d#L225
You may be better off asking this on the vibe.d forum: http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/
Aug 31 2015