Brunet.Transport.IDTAAuthorizer.Authorize C# (CSharp) Метод

Authorize() публичный Метод

public Authorize ( TransportAddress a ) : TAAuthorizer.Decision
a TransportAddress
Результат TAAuthorizer.Decision
  public override TAAuthorizer.Decision Authorize(TransportAddress a) {
    if (_denied_id == ((SimulationTransportAddress)a).ID) {
      return TAAuthorizer.Decision.Deny;
    } else {
      //else this decision should not matter
      return TAAuthorizer.Decision.None;
    }
  }
}