Ejemplo n.º 1
0
 protected void DrsSession(Action <IntPtr> action)
 {
     DrsSessionScope.DrsSession <bool>((hSession) =>
     {
         action(hSession);
         return(true);
     });
 }
 protected void DrsSession(Action <IntPtr> action, bool forceNonGlobalSession = false, bool preventLoadSettings = false)
 {
     DrsSessionScope.DrsSession <bool>((hSession) =>
     {
         action(hSession);
         return(true);
     }, forceNonGlobalSession: forceNonGlobalSession, preventLoadSettings: preventLoadSettings);
 }
Ejemplo n.º 3
0
 protected T DrsSession <T>(Func <IntPtr, T> action)
 {
     return(DrsSessionScope.DrsSession <T>(action));
 }
 protected T DrsSession <T>(Func <IntPtr, T> action, bool forceDedicatedScope = false)
 {
     return(DrsSessionScope.DrsSession <T>(action, forceDedicatedScope));
 }