ExportManager
using Microsoft.VisualBasic.CompilerServices;
using My;
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
namespace kCura.EDDS.WebAPI.ExportManagerBase
{
[GeneratedCode("System.Web.Services", "4.7.2558.0")]
[DebuggerStepThrough]
[DesignerCategory("code")]
[WebServiceBinding]
[XmlInclude(typeof(object[]))]
public class ExportManager
{
private SendOrPostCallback InitializeSearchExportOperationCompleted;
private SendOrPostCallback InitializeFolderExportOperationCompleted;
private SendOrPostCallback InitializeProductionExportOperationCompleted;
private SendOrPostCallback RetrieveResultsBlockForProductionOperationCompleted;
private SendOrPostCallback RetrieveResultsBlockOperationCompleted;
private SendOrPostCallback RetrieveResultsBlockForProductionStartingFromIndexOperationCompleted;
private SendOrPostCallback RetrieveResultsBlockStartingFromIndexOperationCompleted;
private SendOrPostCallback HasExportPermissionsOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
[CompilerGenerated]
private InitializeSearchExportCompletedEventHandler InitializeSearchExportCompletedEvent;
[CompilerGenerated]
private InitializeFolderExportCompletedEventHandler InitializeFolderExportCompletedEvent;
[CompilerGenerated]
private InitializeProductionExportCompletedEventHandler InitializeProductionExportCompletedEvent;
[CompilerGenerated]
private RetrieveResultsBlockForProductionCompletedEventHandler RetrieveResultsBlockForProductionCompletedEvent;
[CompilerGenerated]
private RetrieveResultsBlockCompletedEventHandler RetrieveResultsBlockCompletedEvent;
[CompilerGenerated]
private RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler RetrieveResultsBlockForProductionStartingFromIndexCompletedEvent;
[CompilerGenerated]
private RetrieveResultsBlockStartingFromIndexCompletedEventHandler RetrieveResultsBlockStartingFromIndexCompletedEvent;
[CompilerGenerated]
private HasExportPermissionsCompletedEventHandler HasExportPermissionsCompletedEvent;
public string Url {
get {
return this.get_Url();
}
set {
if (IsLocalFileSystemWebService(this.get_Url()) && !useDefaultCredentialsSetExplicitly && !IsLocalFileSystemWebService(value))
this.set_UseDefaultCredentials(false);
this.set_Url(value);
}
}
public bool UseDefaultCredentials {
get {
return this.get_UseDefaultCredentials();
}
set {
this.set_UseDefaultCredentials(value);
useDefaultCredentialsSetExplicitly = true;
}
}
public event InitializeSearchExportCompletedEventHandler InitializeSearchExportCompleted {
[CompilerGenerated]
add {
InitializeSearchExportCompletedEventHandler initializeSearchExportCompletedEventHandler = InitializeSearchExportCompletedEvent;
InitializeSearchExportCompletedEventHandler initializeSearchExportCompletedEventHandler2;
do {
initializeSearchExportCompletedEventHandler2 = initializeSearchExportCompletedEventHandler;
InitializeSearchExportCompletedEventHandler value2 = (InitializeSearchExportCompletedEventHandler)Delegate.Combine(initializeSearchExportCompletedEventHandler2, value);
initializeSearchExportCompletedEventHandler = Interlocked.CompareExchange(ref InitializeSearchExportCompletedEvent, value2, initializeSearchExportCompletedEventHandler2);
} while ((object)initializeSearchExportCompletedEventHandler != initializeSearchExportCompletedEventHandler2);
}
[CompilerGenerated]
remove {
InitializeSearchExportCompletedEventHandler initializeSearchExportCompletedEventHandler = InitializeSearchExportCompletedEvent;
InitializeSearchExportCompletedEventHandler initializeSearchExportCompletedEventHandler2;
do {
initializeSearchExportCompletedEventHandler2 = initializeSearchExportCompletedEventHandler;
InitializeSearchExportCompletedEventHandler value2 = (InitializeSearchExportCompletedEventHandler)Delegate.Remove(initializeSearchExportCompletedEventHandler2, value);
initializeSearchExportCompletedEventHandler = Interlocked.CompareExchange(ref InitializeSearchExportCompletedEvent, value2, initializeSearchExportCompletedEventHandler2);
} while ((object)initializeSearchExportCompletedEventHandler != initializeSearchExportCompletedEventHandler2);
}
}
public event InitializeFolderExportCompletedEventHandler InitializeFolderExportCompleted {
[CompilerGenerated]
add {
InitializeFolderExportCompletedEventHandler initializeFolderExportCompletedEventHandler = InitializeFolderExportCompletedEvent;
InitializeFolderExportCompletedEventHandler initializeFolderExportCompletedEventHandler2;
do {
initializeFolderExportCompletedEventHandler2 = initializeFolderExportCompletedEventHandler;
InitializeFolderExportCompletedEventHandler value2 = (InitializeFolderExportCompletedEventHandler)Delegate.Combine(initializeFolderExportCompletedEventHandler2, value);
initializeFolderExportCompletedEventHandler = Interlocked.CompareExchange(ref InitializeFolderExportCompletedEvent, value2, initializeFolderExportCompletedEventHandler2);
} while ((object)initializeFolderExportCompletedEventHandler != initializeFolderExportCompletedEventHandler2);
}
[CompilerGenerated]
remove {
InitializeFolderExportCompletedEventHandler initializeFolderExportCompletedEventHandler = InitializeFolderExportCompletedEvent;
InitializeFolderExportCompletedEventHandler initializeFolderExportCompletedEventHandler2;
do {
initializeFolderExportCompletedEventHandler2 = initializeFolderExportCompletedEventHandler;
InitializeFolderExportCompletedEventHandler value2 = (InitializeFolderExportCompletedEventHandler)Delegate.Remove(initializeFolderExportCompletedEventHandler2, value);
initializeFolderExportCompletedEventHandler = Interlocked.CompareExchange(ref InitializeFolderExportCompletedEvent, value2, initializeFolderExportCompletedEventHandler2);
} while ((object)initializeFolderExportCompletedEventHandler != initializeFolderExportCompletedEventHandler2);
}
}
public event InitializeProductionExportCompletedEventHandler InitializeProductionExportCompleted {
[CompilerGenerated]
add {
InitializeProductionExportCompletedEventHandler initializeProductionExportCompletedEventHandler = InitializeProductionExportCompletedEvent;
InitializeProductionExportCompletedEventHandler initializeProductionExportCompletedEventHandler2;
do {
initializeProductionExportCompletedEventHandler2 = initializeProductionExportCompletedEventHandler;
InitializeProductionExportCompletedEventHandler value2 = (InitializeProductionExportCompletedEventHandler)Delegate.Combine(initializeProductionExportCompletedEventHandler2, value);
initializeProductionExportCompletedEventHandler = Interlocked.CompareExchange(ref InitializeProductionExportCompletedEvent, value2, initializeProductionExportCompletedEventHandler2);
} while ((object)initializeProductionExportCompletedEventHandler != initializeProductionExportCompletedEventHandler2);
}
[CompilerGenerated]
remove {
InitializeProductionExportCompletedEventHandler initializeProductionExportCompletedEventHandler = InitializeProductionExportCompletedEvent;
InitializeProductionExportCompletedEventHandler initializeProductionExportCompletedEventHandler2;
do {
initializeProductionExportCompletedEventHandler2 = initializeProductionExportCompletedEventHandler;
InitializeProductionExportCompletedEventHandler value2 = (InitializeProductionExportCompletedEventHandler)Delegate.Remove(initializeProductionExportCompletedEventHandler2, value);
initializeProductionExportCompletedEventHandler = Interlocked.CompareExchange(ref InitializeProductionExportCompletedEvent, value2, initializeProductionExportCompletedEventHandler2);
} while ((object)initializeProductionExportCompletedEventHandler != initializeProductionExportCompletedEventHandler2);
}
}
public event RetrieveResultsBlockForProductionCompletedEventHandler RetrieveResultsBlockForProductionCompleted {
[CompilerGenerated]
add {
RetrieveResultsBlockForProductionCompletedEventHandler retrieveResultsBlockForProductionCompletedEventHandler = RetrieveResultsBlockForProductionCompletedEvent;
RetrieveResultsBlockForProductionCompletedEventHandler retrieveResultsBlockForProductionCompletedEventHandler2;
do {
retrieveResultsBlockForProductionCompletedEventHandler2 = retrieveResultsBlockForProductionCompletedEventHandler;
RetrieveResultsBlockForProductionCompletedEventHandler value2 = (RetrieveResultsBlockForProductionCompletedEventHandler)Delegate.Combine(retrieveResultsBlockForProductionCompletedEventHandler2, value);
retrieveResultsBlockForProductionCompletedEventHandler = Interlocked.CompareExchange(ref RetrieveResultsBlockForProductionCompletedEvent, value2, retrieveResultsBlockForProductionCompletedEventHandler2);
} while ((object)retrieveResultsBlockForProductionCompletedEventHandler != retrieveResultsBlockForProductionCompletedEventHandler2);
}
[CompilerGenerated]
remove {
RetrieveResultsBlockForProductionCompletedEventHandler retrieveResultsBlockForProductionCompletedEventHandler = RetrieveResultsBlockForProductionCompletedEvent;
RetrieveResultsBlockForProductionCompletedEventHandler retrieveResultsBlockForProductionCompletedEventHandler2;
do {
retrieveResultsBlockForProductionCompletedEventHandler2 = retrieveResultsBlockForProductionCompletedEventHandler;
RetrieveResultsBlockForProductionCompletedEventHandler value2 = (RetrieveResultsBlockForProductionCompletedEventHandler)Delegate.Remove(retrieveResultsBlockForProductionCompletedEventHandler2, value);
retrieveResultsBlockForProductionCompletedEventHandler = Interlocked.CompareExchange(ref RetrieveResultsBlockForProductionCompletedEvent, value2, retrieveResultsBlockForProductionCompletedEventHandler2);
} while ((object)retrieveResultsBlockForProductionCompletedEventHandler != retrieveResultsBlockForProductionCompletedEventHandler2);
}
}
public event RetrieveResultsBlockCompletedEventHandler RetrieveResultsBlockCompleted {
[CompilerGenerated]
add {
RetrieveResultsBlockCompletedEventHandler retrieveResultsBlockCompletedEventHandler = RetrieveResultsBlockCompletedEvent;
RetrieveResultsBlockCompletedEventHandler retrieveResultsBlockCompletedEventHandler2;
do {
retrieveResultsBlockCompletedEventHandler2 = retrieveResultsBlockCompletedEventHandler;
RetrieveResultsBlockCompletedEventHandler value2 = (RetrieveResultsBlockCompletedEventHandler)Delegate.Combine(retrieveResultsBlockCompletedEventHandler2, value);
retrieveResultsBlockCompletedEventHandler = Interlocked.CompareExchange(ref RetrieveResultsBlockCompletedEvent, value2, retrieveResultsBlockCompletedEventHandler2);
} while ((object)retrieveResultsBlockCompletedEventHandler != retrieveResultsBlockCompletedEventHandler2);
}
[CompilerGenerated]
remove {
RetrieveResultsBlockCompletedEventHandler retrieveResultsBlockCompletedEventHandler = RetrieveResultsBlockCompletedEvent;
RetrieveResultsBlockCompletedEventHandler retrieveResultsBlockCompletedEventHandler2;
do {
retrieveResultsBlockCompletedEventHandler2 = retrieveResultsBlockCompletedEventHandler;
RetrieveResultsBlockCompletedEventHandler value2 = (RetrieveResultsBlockCompletedEventHandler)Delegate.Remove(retrieveResultsBlockCompletedEventHandler2, value);
retrieveResultsBlockCompletedEventHandler = Interlocked.CompareExchange(ref RetrieveResultsBlockCompletedEvent, value2, retrieveResultsBlockCompletedEventHandler2);
} while ((object)retrieveResultsBlockCompletedEventHandler != retrieveResultsBlockCompletedEventHandler2);
}
}
public event RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler RetrieveResultsBlockForProductionStartingFromIndexCompleted {
[CompilerGenerated]
add {
RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler = RetrieveResultsBlockForProductionStartingFromIndexCompletedEvent;
RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2;
do {
retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2 = retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler;
RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler value2 = (RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler)Delegate.Combine(retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2, value);
retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler = Interlocked.CompareExchange(ref RetrieveResultsBlockForProductionStartingFromIndexCompletedEvent, value2, retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2);
} while ((object)retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler != retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2);
}
[CompilerGenerated]
remove {
RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler = RetrieveResultsBlockForProductionStartingFromIndexCompletedEvent;
RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2;
do {
retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2 = retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler;
RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler value2 = (RetrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler)Delegate.Remove(retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2, value);
retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler = Interlocked.CompareExchange(ref RetrieveResultsBlockForProductionStartingFromIndexCompletedEvent, value2, retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2);
} while ((object)retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler != retrieveResultsBlockForProductionStartingFromIndexCompletedEventHandler2);
}
}
public event RetrieveResultsBlockStartingFromIndexCompletedEventHandler RetrieveResultsBlockStartingFromIndexCompleted {
[CompilerGenerated]
add {
RetrieveResultsBlockStartingFromIndexCompletedEventHandler retrieveResultsBlockStartingFromIndexCompletedEventHandler = RetrieveResultsBlockStartingFromIndexCompletedEvent;
RetrieveResultsBlockStartingFromIndexCompletedEventHandler retrieveResultsBlockStartingFromIndexCompletedEventHandler2;
do {
retrieveResultsBlockStartingFromIndexCompletedEventHandler2 = retrieveResultsBlockStartingFromIndexCompletedEventHandler;
RetrieveResultsBlockStartingFromIndexCompletedEventHandler value2 = (RetrieveResultsBlockStartingFromIndexCompletedEventHandler)Delegate.Combine(retrieveResultsBlockStartingFromIndexCompletedEventHandler2, value);
retrieveResultsBlockStartingFromIndexCompletedEventHandler = Interlocked.CompareExchange(ref RetrieveResultsBlockStartingFromIndexCompletedEvent, value2, retrieveResultsBlockStartingFromIndexCompletedEventHandler2);
} while ((object)retrieveResultsBlockStartingFromIndexCompletedEventHandler != retrieveResultsBlockStartingFromIndexCompletedEventHandler2);
}
[CompilerGenerated]
remove {
RetrieveResultsBlockStartingFromIndexCompletedEventHandler retrieveResultsBlockStartingFromIndexCompletedEventHandler = RetrieveResultsBlockStartingFromIndexCompletedEvent;
RetrieveResultsBlockStartingFromIndexCompletedEventHandler retrieveResultsBlockStartingFromIndexCompletedEventHandler2;
do {
retrieveResultsBlockStartingFromIndexCompletedEventHandler2 = retrieveResultsBlockStartingFromIndexCompletedEventHandler;
RetrieveResultsBlockStartingFromIndexCompletedEventHandler value2 = (RetrieveResultsBlockStartingFromIndexCompletedEventHandler)Delegate.Remove(retrieveResultsBlockStartingFromIndexCompletedEventHandler2, value);
retrieveResultsBlockStartingFromIndexCompletedEventHandler = Interlocked.CompareExchange(ref RetrieveResultsBlockStartingFromIndexCompletedEvent, value2, retrieveResultsBlockStartingFromIndexCompletedEventHandler2);
} while ((object)retrieveResultsBlockStartingFromIndexCompletedEventHandler != retrieveResultsBlockStartingFromIndexCompletedEventHandler2);
}
}
public event HasExportPermissionsCompletedEventHandler HasExportPermissionsCompleted {
[CompilerGenerated]
add {
HasExportPermissionsCompletedEventHandler hasExportPermissionsCompletedEventHandler = HasExportPermissionsCompletedEvent;
HasExportPermissionsCompletedEventHandler hasExportPermissionsCompletedEventHandler2;
do {
hasExportPermissionsCompletedEventHandler2 = hasExportPermissionsCompletedEventHandler;
HasExportPermissionsCompletedEventHandler value2 = (HasExportPermissionsCompletedEventHandler)Delegate.Combine(hasExportPermissionsCompletedEventHandler2, value);
hasExportPermissionsCompletedEventHandler = Interlocked.CompareExchange(ref HasExportPermissionsCompletedEvent, value2, hasExportPermissionsCompletedEventHandler2);
} while ((object)hasExportPermissionsCompletedEventHandler != hasExportPermissionsCompletedEventHandler2);
}
[CompilerGenerated]
remove {
HasExportPermissionsCompletedEventHandler hasExportPermissionsCompletedEventHandler = HasExportPermissionsCompletedEvent;
HasExportPermissionsCompletedEventHandler hasExportPermissionsCompletedEventHandler2;
do {
hasExportPermissionsCompletedEventHandler2 = hasExportPermissionsCompletedEventHandler;
HasExportPermissionsCompletedEventHandler value2 = (HasExportPermissionsCompletedEventHandler)Delegate.Remove(hasExportPermissionsCompletedEventHandler2, value);
hasExportPermissionsCompletedEventHandler = Interlocked.CompareExchange(ref HasExportPermissionsCompletedEvent, value2, hasExportPermissionsCompletedEventHandler2);
} while ((object)hasExportPermissionsCompletedEventHandler != hasExportPermissionsCompletedEventHandler2);
}
}
public ExportManager()
: this()
{
Url = MySettings.Default.kCura_WinEDDS_kCura_EDDS_WebAPI_ExportManagerBase_ExportManager;
if (IsLocalFileSystemWebService(Url)) {
UseDefaultCredentials = true;
useDefaultCredentialsSetExplicitly = false;
} else
useDefaultCredentialsSetExplicitly = true;
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/ExportManager/InitializeSearchExport")]
public InitializationResults InitializeSearchExport(int appID, int searchArtifactID, int[] avfIds, int startAtRecord)
{
return (InitializationResults)this.Invoke("InitializeSearchExport", new object[4] {
appID,
searchArtifactID,
avfIds,
startAtRecord
})[0];
}
public IAsyncResult BeginInitializeSearchExport(int appID, int searchArtifactID, int[] avfIds, int startAtRecord, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("InitializeSearchExport", new object[4] {
appID,
searchArtifactID,
avfIds,
startAtRecord
}, callback, RuntimeHelpers.GetObjectValue(asyncState));
}
public InitializationResults EndInitializeSearchExport(IAsyncResult asyncResult)
{
return (InitializationResults)this.EndInvoke(asyncResult)[0];
}
public void InitializeSearchExportAsync(int appID, int searchArtifactID, int[] avfIds, int startAtRecord)
{
InitializeSearchExportAsync(appID, searchArtifactID, avfIds, startAtRecord, null);
}
public void InitializeSearchExportAsync(int appID, int searchArtifactID, int[] avfIds, int startAtRecord, object userState)
{
if (InitializeSearchExportOperationCompleted == null)
InitializeSearchExportOperationCompleted = OnInitializeSearchExportOperationCompleted;
this.InvokeAsync("InitializeSearchExport", new object[4] {
appID,
searchArtifactID,
avfIds,
startAtRecord
}, InitializeSearchExportOperationCompleted, RuntimeHelpers.GetObjectValue(userState));
}
private void OnInitializeSearchExportOperationCompleted(object arg)
{
if (InitializeSearchExportCompletedEvent != null) {
InvokeCompletedEventArgs val = arg;
InitializeSearchExportCompletedEvent?.Invoke(this, new InitializeSearchExportCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, RuntimeHelpers.GetObjectValue(((AsyncCompletedEventArgs)val).UserState)));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/ExportManager/InitializeFolderExport")]
public InitializationResults InitializeFolderExport(int appID, int viewArtifactID, int parentArtifactID, bool includeSubFolders, int[] avfIds, int startAtRecord, int artifactTypeID)
{
return (InitializationResults)this.Invoke("InitializeFolderExport", new object[7] {
appID,
viewArtifactID,
parentArtifactID,
includeSubFolders,
avfIds,
startAtRecord,
artifactTypeID
})[0];
}
public IAsyncResult BeginInitializeFolderExport(int appID, int viewArtifactID, int parentArtifactID, bool includeSubFolders, int[] avfIds, int startAtRecord, int artifactTypeID, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("InitializeFolderExport", new object[7] {
appID,
viewArtifactID,
parentArtifactID,
includeSubFolders,
avfIds,
startAtRecord,
artifactTypeID
}, callback, RuntimeHelpers.GetObjectValue(asyncState));
}
public InitializationResults EndInitializeFolderExport(IAsyncResult asyncResult)
{
return (InitializationResults)this.EndInvoke(asyncResult)[0];
}
public void InitializeFolderExportAsync(int appID, int viewArtifactID, int parentArtifactID, bool includeSubFolders, int[] avfIds, int startAtRecord, int artifactTypeID)
{
InitializeFolderExportAsync(appID, viewArtifactID, parentArtifactID, includeSubFolders, avfIds, startAtRecord, artifactTypeID, null);
}
public void InitializeFolderExportAsync(int appID, int viewArtifactID, int parentArtifactID, bool includeSubFolders, int[] avfIds, int startAtRecord, int artifactTypeID, object userState)
{
if (InitializeFolderExportOperationCompleted == null)
InitializeFolderExportOperationCompleted = OnInitializeFolderExportOperationCompleted;
this.InvokeAsync("InitializeFolderExport", new object[7] {
appID,
viewArtifactID,
parentArtifactID,
includeSubFolders,
avfIds,
startAtRecord,
artifactTypeID
}, InitializeFolderExportOperationCompleted, RuntimeHelpers.GetObjectValue(userState));
}
private void OnInitializeFolderExportOperationCompleted(object arg)
{
if (InitializeFolderExportCompletedEvent != null) {
InvokeCompletedEventArgs val = arg;
InitializeFolderExportCompletedEvent?.Invoke(this, new InitializeFolderExportCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, RuntimeHelpers.GetObjectValue(((AsyncCompletedEventArgs)val).UserState)));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/ExportManager/InitializeProductionExport")]
public InitializationResults InitializeProductionExport(int appID, int productionArtifactID, int[] avfIds, int startAtRecord)
{
return (InitializationResults)this.Invoke("InitializeProductionExport", new object[4] {
appID,
productionArtifactID,
avfIds,
startAtRecord
})[0];
}
public IAsyncResult BeginInitializeProductionExport(int appID, int productionArtifactID, int[] avfIds, int startAtRecord, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("InitializeProductionExport", new object[4] {
appID,
productionArtifactID,
avfIds,
startAtRecord
}, callback, RuntimeHelpers.GetObjectValue(asyncState));
}
public InitializationResults EndInitializeProductionExport(IAsyncResult asyncResult)
{
return (InitializationResults)this.EndInvoke(asyncResult)[0];
}
public void InitializeProductionExportAsync(int appID, int productionArtifactID, int[] avfIds, int startAtRecord)
{
InitializeProductionExportAsync(appID, productionArtifactID, avfIds, startAtRecord, null);
}
public void InitializeProductionExportAsync(int appID, int productionArtifactID, int[] avfIds, int startAtRecord, object userState)
{
if (InitializeProductionExportOperationCompleted == null)
InitializeProductionExportOperationCompleted = OnInitializeProductionExportOperationCompleted;
this.InvokeAsync("InitializeProductionExport", new object[4] {
appID,
productionArtifactID,
avfIds,
startAtRecord
}, InitializeProductionExportOperationCompleted, RuntimeHelpers.GetObjectValue(userState));
}
private void OnInitializeProductionExportOperationCompleted(object arg)
{
if (InitializeProductionExportCompletedEvent != null) {
InvokeCompletedEventArgs val = arg;
InitializeProductionExportCompletedEvent?.Invoke(this, new InitializeProductionExportCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, RuntimeHelpers.GetObjectValue(((AsyncCompletedEventArgs)val).UserState)));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/ExportManager/RetrieveResultsBlockForProduction")]
public object[] RetrieveResultsBlockForProduction(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int productionId)
{
return (object[])this.Invoke("RetrieveResultsBlockForProduction", new object[10] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds,
productionId
})[0];
}
public IAsyncResult BeginRetrieveResultsBlockForProduction(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int productionId, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("RetrieveResultsBlockForProduction", new object[10] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds,
productionId
}, callback, RuntimeHelpers.GetObjectValue(asyncState));
}
public object[] EndRetrieveResultsBlockForProduction(IAsyncResult asyncResult)
{
return (object[])this.EndInvoke(asyncResult)[0];
}
public void RetrieveResultsBlockForProductionAsync(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int productionId)
{
RetrieveResultsBlockForProductionAsync(appID, runId, artifactTypeID, avfIds, chunkSize, displayMulticodesAsNested, multiValueDelimiter, nestedValueDelimiter, textPrecedenceAvfIds, productionId, null);
}
public void RetrieveResultsBlockForProductionAsync(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int productionId, object userState)
{
if (RetrieveResultsBlockForProductionOperationCompleted == null)
RetrieveResultsBlockForProductionOperationCompleted = OnRetrieveResultsBlockForProductionOperationCompleted;
this.InvokeAsync("RetrieveResultsBlockForProduction", new object[10] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds,
productionId
}, RetrieveResultsBlockForProductionOperationCompleted, RuntimeHelpers.GetObjectValue(userState));
}
private void OnRetrieveResultsBlockForProductionOperationCompleted(object arg)
{
if (RetrieveResultsBlockForProductionCompletedEvent != null) {
InvokeCompletedEventArgs val = arg;
RetrieveResultsBlockForProductionCompletedEvent?.Invoke(this, new RetrieveResultsBlockForProductionCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, RuntimeHelpers.GetObjectValue(((AsyncCompletedEventArgs)val).UserState)));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/ExportManager/RetrieveResultsBlock")]
public object[] RetrieveResultsBlock(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds)
{
return (object[])this.Invoke("RetrieveResultsBlock", new object[9] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds
})[0];
}
public IAsyncResult BeginRetrieveResultsBlock(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("RetrieveResultsBlock", new object[9] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds
}, callback, RuntimeHelpers.GetObjectValue(asyncState));
}
public object[] EndRetrieveResultsBlock(IAsyncResult asyncResult)
{
return (object[])this.EndInvoke(asyncResult)[0];
}
public void RetrieveResultsBlockAsync(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds)
{
RetrieveResultsBlockAsync(appID, runId, artifactTypeID, avfIds, chunkSize, displayMulticodesAsNested, multiValueDelimiter, nestedValueDelimiter, textPrecedenceAvfIds, null);
}
public void RetrieveResultsBlockAsync(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, object userState)
{
if (RetrieveResultsBlockOperationCompleted == null)
RetrieveResultsBlockOperationCompleted = OnRetrieveResultsBlockOperationCompleted;
this.InvokeAsync("RetrieveResultsBlock", new object[9] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds
}, RetrieveResultsBlockOperationCompleted, RuntimeHelpers.GetObjectValue(userState));
}
private void OnRetrieveResultsBlockOperationCompleted(object arg)
{
if (RetrieveResultsBlockCompletedEvent != null) {
InvokeCompletedEventArgs val = arg;
RetrieveResultsBlockCompletedEvent?.Invoke(this, new RetrieveResultsBlockCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, RuntimeHelpers.GetObjectValue(((AsyncCompletedEventArgs)val).UserState)));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/ExportManager/RetrieveResultsBlockForProductionStartingFromIndex")]
public object[] RetrieveResultsBlockForProductionStartingFromIndex(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int productionId, int index)
{
return (object[])this.Invoke("RetrieveResultsBlockForProductionStartingFromIndex", new object[11] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds,
productionId,
index
})[0];
}
public IAsyncResult BeginRetrieveResultsBlockForProductionStartingFromIndex(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int productionId, int index, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("RetrieveResultsBlockForProductionStartingFromIndex", new object[11] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds,
productionId,
index
}, callback, RuntimeHelpers.GetObjectValue(asyncState));
}
public object[] EndRetrieveResultsBlockForProductionStartingFromIndex(IAsyncResult asyncResult)
{
return (object[])this.EndInvoke(asyncResult)[0];
}
public void RetrieveResultsBlockForProductionStartingFromIndexAsync(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int productionId, int index)
{
RetrieveResultsBlockForProductionStartingFromIndexAsync(appID, runId, artifactTypeID, avfIds, chunkSize, displayMulticodesAsNested, multiValueDelimiter, nestedValueDelimiter, textPrecedenceAvfIds, productionId, index, null);
}
public void RetrieveResultsBlockForProductionStartingFromIndexAsync(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int productionId, int index, object userState)
{
if (RetrieveResultsBlockForProductionStartingFromIndexOperationCompleted == null)
RetrieveResultsBlockForProductionStartingFromIndexOperationCompleted = OnRetrieveResultsBlockForProductionStartingFromIndexOperationCompleted;
this.InvokeAsync("RetrieveResultsBlockForProductionStartingFromIndex", new object[11] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds,
productionId,
index
}, RetrieveResultsBlockForProductionStartingFromIndexOperationCompleted, RuntimeHelpers.GetObjectValue(userState));
}
private void OnRetrieveResultsBlockForProductionStartingFromIndexOperationCompleted(object arg)
{
if (RetrieveResultsBlockForProductionStartingFromIndexCompletedEvent != null) {
InvokeCompletedEventArgs val = arg;
RetrieveResultsBlockForProductionStartingFromIndexCompletedEvent?.Invoke(this, new RetrieveResultsBlockForProductionStartingFromIndexCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, RuntimeHelpers.GetObjectValue(((AsyncCompletedEventArgs)val).UserState)));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/ExportManager/RetrieveResultsBlockStartingFromIndex")]
public object[] RetrieveResultsBlockStartingFromIndex(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int index)
{
return (object[])this.Invoke("RetrieveResultsBlockStartingFromIndex", new object[10] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds,
index
})[0];
}
public IAsyncResult BeginRetrieveResultsBlockStartingFromIndex(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int index, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("RetrieveResultsBlockStartingFromIndex", new object[10] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds,
index
}, callback, RuntimeHelpers.GetObjectValue(asyncState));
}
public object[] EndRetrieveResultsBlockStartingFromIndex(IAsyncResult asyncResult)
{
return (object[])this.EndInvoke(asyncResult)[0];
}
public void RetrieveResultsBlockStartingFromIndexAsync(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int index)
{
RetrieveResultsBlockStartingFromIndexAsync(appID, runId, artifactTypeID, avfIds, chunkSize, displayMulticodesAsNested, multiValueDelimiter, nestedValueDelimiter, textPrecedenceAvfIds, index, null);
}
public void RetrieveResultsBlockStartingFromIndexAsync(int appID, Guid runId, int artifactTypeID, int[] avfIds, int chunkSize, bool displayMulticodesAsNested, char multiValueDelimiter, char nestedValueDelimiter, int[] textPrecedenceAvfIds, int index, object userState)
{
if (RetrieveResultsBlockStartingFromIndexOperationCompleted == null)
RetrieveResultsBlockStartingFromIndexOperationCompleted = OnRetrieveResultsBlockStartingFromIndexOperationCompleted;
this.InvokeAsync("RetrieveResultsBlockStartingFromIndex", new object[10] {
appID,
runId,
artifactTypeID,
avfIds,
chunkSize,
displayMulticodesAsNested,
multiValueDelimiter,
nestedValueDelimiter,
textPrecedenceAvfIds,
index
}, RetrieveResultsBlockStartingFromIndexOperationCompleted, RuntimeHelpers.GetObjectValue(userState));
}
private void OnRetrieveResultsBlockStartingFromIndexOperationCompleted(object arg)
{
if (RetrieveResultsBlockStartingFromIndexCompletedEvent != null) {
InvokeCompletedEventArgs val = arg;
RetrieveResultsBlockStartingFromIndexCompletedEvent?.Invoke(this, new RetrieveResultsBlockStartingFromIndexCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, RuntimeHelpers.GetObjectValue(((AsyncCompletedEventArgs)val).UserState)));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/ExportManager/HasExportPermissions")]
public bool HasExportPermissions(int appID)
{
return Conversions.ToBoolean(this.Invoke("HasExportPermissions", new object[1] {
appID
})[0]);
}
public IAsyncResult BeginHasExportPermissions(int appID, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("HasExportPermissions", new object[1] {
appID
}, callback, RuntimeHelpers.GetObjectValue(asyncState));
}
public bool EndHasExportPermissions(IAsyncResult asyncResult)
{
return Conversions.ToBoolean(this.EndInvoke(asyncResult)[0]);
}
public void HasExportPermissionsAsync(int appID)
{
HasExportPermissionsAsync(appID, null);
}
public void HasExportPermissionsAsync(int appID, object userState)
{
if (HasExportPermissionsOperationCompleted == null)
HasExportPermissionsOperationCompleted = OnHasExportPermissionsOperationCompleted;
this.InvokeAsync("HasExportPermissions", new object[1] {
appID
}, HasExportPermissionsOperationCompleted, RuntimeHelpers.GetObjectValue(userState));
}
private void OnHasExportPermissionsOperationCompleted(object arg)
{
if (HasExportPermissionsCompletedEvent != null) {
InvokeCompletedEventArgs val = arg;
HasExportPermissionsCompletedEvent?.Invoke(this, new HasExportPermissionsCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, RuntimeHelpers.GetObjectValue(((AsyncCompletedEventArgs)val).UserState)));
}
}
public void CancelAsync(object userState)
{
this.CancelAsync(RuntimeHelpers.GetObjectValue(userState));
}
private bool IsLocalFileSystemWebService(string url)
{
if (url != null && (object)url != string.Empty) {
Uri uri = new Uri(url);
if (uri.Port >= 1024 && string.Compare(uri.Host, "localHost", StringComparison.OrdinalIgnoreCase) == 0)
return true;
return false;
}
return false;
}
}
}