1using System.Threading.Tasks;
10 private readonly
string from;
11 private readonly
string[] deviceTokens;
12 private readonly
string[] serviceTokens;
13 private readonly
string[] userTokens;
20 : this(From, null, null, null)
31 public Authority(
string From,
string[] DeviceTokens,
string[] ServiceTokens,
35 this.deviceTokens = DeviceTokens;
36 this.serviceTokens = ServiceTokens;
37 this.userTokens = UserTokens;
45 return Task.FromResult(
new RequestOrigin(this.from, this.deviceTokens,
46 this.serviceTokens, this.userTokens,
this));
Abstract base class for authorities.
Task< RequestOrigin > GetOrigin()
Origin of request.
Authority(string From, string[] DeviceTokens, string[] ServiceTokens, string[] UserTokens)
Abstract base class for authorities.
abstract bool HasPrivilege(string Privilege)
If the origin has a given privilege.
Authority(string From)
Abstract base class for authorities.
Tokens available in request.
Interface for requestors that can act as an origin for distributed requests.