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));
        }
Пример #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)
 {
 }
Пример #4
0
 public IsUnauthenticatedPredication(string name, Zongsoft.Services.IApplicationContext applicationContext) : base(name)
 {
     _applicationContext = applicationContext ?? throw new ArgumentNullException(nameof(applicationContext));
 }