Пример #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);
 }
Пример #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));
 }