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