B-Arts DocumentationIndice generale

BAIRequestOutput

Identità

  • Namespace: B.BAI

  • Assembly: BFramework

  • Tipo: class

Dichiarazione

public BAIRequestOutput(Type type)

Proprietà

Proprietà Tipo Accesso
IsNothing bool get/private set
Type Type get/private set
Schema Dictionary<string, object> get/private set

Il costruttore salva il tipo e genera Schema tramite BReflection.CreateJsonSchema(type).

Metodi

  • Dictionary<string, object> CreateResultSchema() — racchiude Schema nel contratto { IsNothing, Value } richiesto da BTypeResult<T> e vieta proprietà aggiuntive.

Il costruttore imposta IsNothing se non riesce a creare uno schema. BAIConnection.ExecuteAsync<T> usa internamente questa classe: non esiste una proprietà RequestOutput sulla connection corrente.