示例#1
0
 public Implementation(IHangfireContext hangfireContext, ConfigImpl configImpl, PersistenceSettings persistenceSettings, IBuilderSerializer deserializer, IEventWaitHandle waitHandle)
     : this(hangfireContext, configImpl)
 {
     _persistence             = persistenceSettings;
     _deserializer            = deserializer;
     _eventWaitHandlerFactory = waitHandle;
 }
示例#2
0
 public static bool Enter(IEventWaitHandle handle, int millisecondsTimeout)
 {
     if (handle == null)
     {
         throw new ArgumentNullException("handle");
     }
     return(Enter(handle.Handle, millisecondsTimeout));
 }
示例#3
0
 public static bool Exit(IEventWaitHandle handle)
 {
     if (handle == null)
     {
         throw new ArgumentNullException("handle");
     }
     return(Exit(handle.Handle));
 }
示例#4
0
 public static bool Enter(IEventWaitHandle handle)
 {
     return(Enter(handle, -1));
 }