CmisSync.Lib.Queueing.EventHandlerPriorities.GetPriority C# (CSharp) 메소드

GetPriority() 공개 정적인 메소드

Gets the default priority of the given type
public static GetPriority ( Type type ) : int
type System.Type /// Type of the event handler. ///
리턴 int
        public static int GetPriority(Type type) {
            return map[type];
        }
    }

Usage Example

 /// <summary>
 /// Initializes a new instance of the <see cref="CmisSync.Lib.Queueing.GenericSyncEventHandler"/> class.
 /// </summary>
 /// <param name='handler'>
 /// Handler which will be called on incomming event.
 /// </param>
 /// <param name="name">
 /// Name of the instance
 /// </param>
 public GenericSyncEventHandler(
     GenericSyncEventDelegate <TSyncEventType> handler,
     string name = null)
     : this(EventHandlerPriorities.GetPriority(typeof(GenericSyncEventHandler <>)), handler, name)
 {
 }