Beispiel #1
0
 private void Write(EntityCollectionFunctionMethod method)
 {
     WriteSignature(method);
     using (_builder.IndentBraced)
     {
         WriteEntityMethodBodyStart(method);
         _("return (await this.Context.ExecuteAsync<{0}>(requestUri, \"{1}\", false, new OperationParameter[]",
           method.InstanceName, method.HttpMethod);
         using (_builder.IndentBraced)
         {
             WriteMethodOperationParameters(method);
         }
         _("));");
     }
 }
Beispiel #2
0
 private void Write(EntityCollectionFunctionMethod method)
 {
     WriteSignature(method);
     using (_builder.IndentBraced)
     {
         WriteEntityMethodBodyStart(method);
         _("return (await this.Context.ExecuteAsync<{0}>(requestUri, \"{1}\", false, new OperationParameter[]",
             method.InstanceName, method.HttpMethod);
         using (_builder.IndentBraced)
         {
             WriteMethodOperationParameters(method);
         }
         _("));");
     }
 }