public string IsReadOnly(OperationModel operation) { return(operation.GetTransactionOptions()?.IsReadOnly().ToString().ToLower() ?? (operation.GetStereotype("Http Settings")?.GetProperty <string>("Verb") == "GET" ? "true" : "false")); }
public static Synchronous GetSynchronous(this OperationModel model) { var stereotype = model.GetStereotype("Synchronous"); return(stereotype != null ? new Synchronous(stereotype) : null); }
public static HttpSettings GetHttpSettings(this OperationModel model) { var stereotype = model.GetStereotype("Http Settings"); return(stereotype != null ? new HttpSettings(stereotype) : null); }
public static Unsecured GetUnsecured(this OperationModel model) { var stereotype = model.GetStereotype("Unsecured"); return(stereotype != null ? new Unsecured(stereotype) : null); }
public static TransactionOptions GetTransactionOptions(this OperationModel model) { var stereotype = model.GetStereotype("Transaction Options"); return(stereotype != null ? new TransactionOptions(stereotype) : null); }