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);
        }
예제 #3
0
        public static HttpSettings GetHttpSettings(this OperationModel model)
        {
            var stereotype = model.GetStereotype("Http Settings");

            return(stereotype != null ? new HttpSettings(stereotype) : null);
        }
예제 #4
0
        public static Unsecured GetUnsecured(this OperationModel model)
        {
            var stereotype = model.GetStereotype("Unsecured");

            return(stereotype != null ? new Unsecured(stereotype) : null);
        }
예제 #5
0
        public static TransactionOptions GetTransactionOptions(this OperationModel model)
        {
            var stereotype = model.GetStereotype("Transaction Options");

            return(stereotype != null ? new TransactionOptions(stereotype) : null);
        }