private static OS.ObjectSchemaLoaderResult GetObjectSchemaLoaderResult() { if (oslr != null) { return(oslr); } oslr = osl.GetResult(); foreach (var t in oslr.Schema.Types) { if (t.OnClientCommand) { var cc = t.ClientCommand; if (AsyncAll || AsyncCommands.Contains(cc.FullName())) { if (!cc.Attributes.Any(a => a.Key == "Async")) { cc.Attributes.Add(new KeyValuePair <String, List <String> >("Async", new List <String> { })); } } } } return(oslr); }
private static void InvalidateSchema() { oslr = null; osa = null; tbc = null; }