Exemplo n.º 1
0
 public async Task <ISyntexModelPublicationResult> PublishModelAsync(SyntexModelPublishOptions publicationOptions)
 {
     return(ProcessModelPublishResponse(await PublishModelApiRequestAsync(UniqueId,
                                                                          publicationOptions.TargetSiteUrl,
                                                                          publicationOptions.TargetWebServerRelativeUrl,
                                                                          publicationOptions.TargetLibraryServerRelativeUrl,
                                                                          publicationOptions.ViewOption).ConfigureAwait(false)));
 }
Exemplo n.º 2
0
 public IBatchSingleResult <ISyntexModelPublicationResult> PublishModelBatch(SyntexModelPublishOptions publicationOptions)
 {
     return(PublishModelBatchAsync(publicationOptions).GetAwaiter().GetResult());
 }
Exemplo n.º 3
0
 public async Task <IBatchSingleResult <ISyntexModelPublicationResult> > PublishModelBatchAsync(SyntexModelPublishOptions publicationOptions)
 {
     return(await PublishModelBatchAsync((ListItem as ListItem).PnPContext.CurrentBatch, publicationOptions).ConfigureAwait(false));
 }
Exemplo n.º 4
0
 public async Task <IBatchSingleResult <ISyntexModelPublicationResult> > PublishModelBatchAsync(Batch batch, SyntexModelPublishOptions publicationOptions)
 {
     return(await PublishModelBatchImplementationAsync(batch, UniqueId,
                                                       publicationOptions.TargetSiteUrl,
                                                       publicationOptions.TargetWebServerRelativeUrl,
                                                       publicationOptions.TargetLibraryServerRelativeUrl,
                                                       publicationOptions.ViewOption).ConfigureAwait(false));
 }
Exemplo n.º 5
0
 public ISyntexModelPublicationResult PublishModel(SyntexModelPublishOptions publicationOptions)
 {
     return(PublishModelAsync(publicationOptions).GetAwaiter().GetResult());
 }