public ChallengeHandlerProviderAttribute(string name,
         ChallengeTypeKind supportedTypes)
     : base(typeof(IChallengeHandlerProvider))
 {
     Name = name;
     SupportedTypes = supportedTypes;
 }
 public ChallengeDecoderProviderAttribute(string type,
         ChallengeTypeKind supportedType)
     : base(typeof(IChallengeDecoderProvider))
 {
     Type = type;
     SupportedType = supportedType;
 }
 public ChallengeHandlerProviderAttribute(string name,
                                          ChallengeTypeKind supportedTypes,
                                          bool isCleanUpSupported = false) : base(typeof(IChallengeHandlerProvider))
 {
     Name               = name;
     SupportedTypes     = supportedTypes;
     IsCleanUpSupported = isCleanUpSupported;
 }
Exemplo n.º 4
0
        protected Challenge(ChallengeTypeKind typeKind, string type, ChallengeAnswer answer)
        {
            if (answer == null)
                throw new ArgumentNullException(nameof(answer), "challenge answer must is required");

            TypeKind = typeKind;
            Type = type;
            Answer = answer;
        }
Exemplo n.º 5
0
        protected Challenge(ChallengeTypeKind typeKind, string type, ChallengeAnswer answer)
        {
            if (answer == null)
            {
                throw new ArgumentNullException(nameof(answer), "challenge answer must is required");
            }

            TypeKind = typeKind;
            Type     = type;
            Answer   = answer;
        }
 public ChallengeDecoderProviderAttribute(string type,
                                          ChallengeTypeKind supportedType) : base(typeof(IChallengeDecoderProvider))
 {
     Type          = type;
     SupportedType = supportedType;
 }
Exemplo n.º 7
0
 public ChallengeHandlerProviderAttribute(string name,
                                          ChallengeTypeKind supportedTypes) : base(typeof(IChallengeHandlerProvider))
 {
     Name           = name;
     SupportedTypes = supportedTypes;
 }