protected AuthorizationPredicationBase(string name, Zongsoft.Services.IApplicationContext applicationContext)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException("name");
            }

            _name = name.Trim();
            _applicationContext = applicationContext ?? throw new ArgumentNullException(nameof(applicationContext));
        }
Esempio n. 2
0
 void Zongsoft.Services.IApplicationFilter.Initialize(Zongsoft.Services.IApplicationContext context)
 {
     this.Initialize(context as PluginApplicationContext);
 }
 public IsUnauthorizedPredication(string name, Zongsoft.Services.IApplicationContext applicationContext) : base(name, applicationContext)
 {
 }
Esempio n. 4
0
 public IsUnauthenticatedPredication(string name, Zongsoft.Services.IApplicationContext applicationContext) : base(name)
 {
     _applicationContext = applicationContext ?? throw new ArgumentNullException(nameof(applicationContext));
 }