internal FirebaseTokenFactory(ISigner signer, IClock clock, string tenantId = null)
        {
            if (tenantId == string.Empty)
            {
                throw new ArgumentException("Tenant ID must not be empty.");
            }

            this.clock    = clock.ThrowIfNull(nameof(clock));
            this.Signer   = signer.ThrowIfNull(nameof(signer));
            this.TenantId = tenantId;
        }
Ejemplo n.º 2
0
 public FirebaseTokenFactory(ISigner signer, IClock clock)
 {
     this.signer = signer.ThrowIfNull(nameof(signer));
     this.clock  = clock.ThrowIfNull(nameof(clock));
 }