FileIO
using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
namespace Relativity.Transfer
{
[ExcludeFromCodeCoverage]
[GeneratedCode("wsdl", "4.6.1055.0")]
[DebuggerStepThrough]
[DesignerCategory("code")]
[WebServiceBinding]
internal class FileIO
{
private SendOrPostCallback BeginFillOperationCompleted;
private SendOrPostCallback FileFillOperationCompleted;
private SendOrPostCallback RemoveFillOperationCompleted;
private SendOrPostCallback RemoveTempFileOperationCompleted;
private SendOrPostCallback ReadFileAsStringOperationCompleted;
private SendOrPostCallback ;
private SendOrPostCallback ;
private SendOrPostCallback ;
private SendOrPostCallback GetDefaultRepositorySpaceReportOperationCompleted;
private SendOrPostCallback RepositoryVolumeMaxOperationCompleted;
public event BeginFillCompletedEventHandler BeginFillCompleted;
public event FileFillCompletedEventHandler FileFillCompleted;
public event RemoveFillCompletedEventHandler RemoveFillCompleted;
public event RemoveTempFileCompletedEventHandler RemoveTempFileCompleted;
public event ReadFileAsStringCompletedEventHandler ReadFileAsStringCompleted;
public event GetBcpSharePathCompletedEventHandler ;
public event ValidateBcpShareCompletedEventHandler ;
public event GetBcpShareSpaceReportCompletedEventHandler ;
public event GetDefaultRepositorySpaceReportCompletedEventHandler GetDefaultRepositorySpaceReportCompleted;
public event RepositoryVolumeMaxCompletedEventHandler RepositoryVolumeMaxCompleted;
public FileIO()
: this()
{
this.set_Url("http://localhost/RelativityWebApi/FileIO.asmx");
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/BeginFill")]
public IoResponse BeginFill(int caseContextArtifactID, [XmlElement(DataType = "base64Binary")] byte[] b, string documentDirectory, string fileGuid)
{
object[] array = this.Invoke("BeginFill", new object[4] {
caseContextArtifactID,
b,
documentDirectory,
fileGuid
});
return (IoResponse)array[0];
}
public IAsyncResult BeginBeginFill(int caseContextArtifactID, byte[] b, string documentDirectory, string fileGuid, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("BeginFill", new object[4] {
caseContextArtifactID,
b,
documentDirectory,
fileGuid
}, callback, asyncState);
}
public IoResponse EndBeginFill(IAsyncResult asyncResult)
{
object[] array = this.EndInvoke(asyncResult);
return (IoResponse)array[0];
}
public void BeginFillAsync(int caseContextArtifactID, byte[] b, string documentDirectory, string fileGuid)
{
BeginFillAsync(caseContextArtifactID, b, documentDirectory, fileGuid, null);
}
public void BeginFillAsync(int caseContextArtifactID, byte[] b, string documentDirectory, string fileGuid, object userState)
{
if (BeginFillOperationCompleted == null)
BeginFillOperationCompleted = OnBeginFillOperationCompleted;
this.InvokeAsync("BeginFill", new object[4] {
caseContextArtifactID,
b,
documentDirectory,
fileGuid
}, BeginFillOperationCompleted, userState);
}
private void OnBeginFillOperationCompleted(object arg)
{
if (this.BeginFillCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.BeginFillCompleted(this, new BeginFillCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/FileFill")]
public IoResponse FileFill(int caseContextArtifactID, string documentDirectory, string fileName, [XmlElement(DataType = "base64Binary")] byte[] b)
{
object[] array = this.Invoke("FileFill", new object[4] {
caseContextArtifactID,
documentDirectory,
fileName,
b
});
return (IoResponse)array[0];
}
public IAsyncResult BeginFileFill(int caseContextArtifactID, string documentDirectory, string fileName, byte[] b, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("FileFill", new object[4] {
caseContextArtifactID,
documentDirectory,
fileName,
b
}, callback, asyncState);
}
public IoResponse EndFileFill(IAsyncResult asyncResult)
{
object[] array = this.EndInvoke(asyncResult);
return (IoResponse)array[0];
}
public void FileFillAsync(int caseContextArtifactID, string documentDirectory, string fileName, byte[] b)
{
FileFillAsync(caseContextArtifactID, documentDirectory, fileName, b, null);
}
public void FileFillAsync(int caseContextArtifactID, string documentDirectory, string fileName, byte[] b, object userState)
{
if (FileFillOperationCompleted == null)
FileFillOperationCompleted = OnFileFillOperationCompleted;
this.InvokeAsync("FileFill", new object[4] {
caseContextArtifactID,
documentDirectory,
fileName,
b
}, FileFillOperationCompleted, userState);
}
private void OnFileFillOperationCompleted(object arg)
{
if (this.FileFillCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.FileFillCompleted(this, new FileFillCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/RemoveFill")]
public void RemoveFill(int caseContextArtifactID, string documentDirectory, string fileName)
{
this.Invoke("RemoveFill", new object[3] {
caseContextArtifactID,
documentDirectory,
fileName
});
}
public IAsyncResult BeginRemoveFill(int caseContextArtifactID, string documentDirectory, string fileName, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("RemoveFill", new object[3] {
caseContextArtifactID,
documentDirectory,
fileName
}, callback, asyncState);
}
public void EndRemoveFill(IAsyncResult asyncResult)
{
this.EndInvoke(asyncResult);
}
public void RemoveFillAsync(int caseContextArtifactID, string documentDirectory, string fileName)
{
RemoveFillAsync(caseContextArtifactID, documentDirectory, fileName, null);
}
public void RemoveFillAsync(int caseContextArtifactID, string documentDirectory, string fileName, object userState)
{
if (RemoveFillOperationCompleted == null)
RemoveFillOperationCompleted = OnRemoveFillOperationCompleted;
this.InvokeAsync("RemoveFill", new object[3] {
caseContextArtifactID,
documentDirectory,
fileName
}, RemoveFillOperationCompleted, userState);
}
private void OnRemoveFillOperationCompleted(object arg)
{
if (this.RemoveFillCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.RemoveFillCompleted(this, new AsyncCompletedEventArgs(((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/RemoveTempFile")]
public void RemoveTempFile(int caseContextArtifactID, string fileName)
{
this.Invoke("RemoveTempFile", new object[2] {
caseContextArtifactID,
fileName
});
}
public IAsyncResult BeginRemoveTempFile(int caseContextArtifactID, string fileName, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("RemoveTempFile", new object[2] {
caseContextArtifactID,
fileName
}, callback, asyncState);
}
public void EndRemoveTempFile(IAsyncResult asyncResult)
{
this.EndInvoke(asyncResult);
}
public void RemoveTempFileAsync(int caseContextArtifactID, string fileName)
{
RemoveTempFileAsync(caseContextArtifactID, fileName, null);
}
public void RemoveTempFileAsync(int caseContextArtifactID, string fileName, object userState)
{
if (RemoveTempFileOperationCompleted == null)
RemoveTempFileOperationCompleted = OnRemoveTempFileOperationCompleted;
this.InvokeAsync("RemoveTempFile", new object[2] {
caseContextArtifactID,
fileName
}, RemoveTempFileOperationCompleted, userState);
}
private void OnRemoveTempFileOperationCompleted(object arg)
{
if (this.RemoveTempFileCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.RemoveTempFileCompleted(this, new AsyncCompletedEventArgs(((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/ReadFileAsString")]
[return: XmlElement(DataType = "base64Binary")]
public byte[] ReadFileAsString(string path)
{
object[] array = this.Invoke("ReadFileAsString", new object[1] {
path
});
return (byte[])array[0];
}
public IAsyncResult BeginReadFileAsString(string path, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("ReadFileAsString", new object[1] {
path
}, callback, asyncState);
}
public byte[] EndReadFileAsString(IAsyncResult asyncResult)
{
object[] array = this.EndInvoke(asyncResult);
return (byte[])array[0];
}
public void ReadFileAsStringAsync(string path)
{
ReadFileAsStringAsync(path, null);
}
public void ReadFileAsStringAsync(string path, object userState)
{
if (ReadFileAsStringOperationCompleted == null)
ReadFileAsStringOperationCompleted = OnReadFileAsStringOperationCompleted;
this.InvokeAsync("ReadFileAsString", new object[1] {
path
}, ReadFileAsStringOperationCompleted, userState);
}
private void OnReadFileAsStringOperationCompleted(object arg)
{
if (this.ReadFileAsStringCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.ReadFileAsStringCompleted(this, new ReadFileAsStringCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/GetBcpSharePath")]
public string (int caseContextArtifactID)
{
object[] array = this.Invoke("GetBcpSharePath", new object[1] {
caseContextArtifactID
});
return (string)array[0];
}
public IAsyncResult (int caseContextArtifactID, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("GetBcpSharePath", new object[1] {
caseContextArtifactID
}, callback, asyncState);
}
public string (IAsyncResult asyncResult)
{
object[] array = this.EndInvoke(asyncResult);
return (string)array[0];
}
public void (int caseContextArtifactID)
{
GetBcpSharePathAsync(caseContextArtifactID, null);
}
public void (int caseContextArtifactID, object userState)
{
if (GetBcpSharePathOperationCompleted == null)
GetBcpSharePathOperationCompleted = OnGetBcpSharePathOperationCompleted;
this.InvokeAsync("GetBcpSharePath", new object[1] {
caseContextArtifactID
}, GetBcpSharePathOperationCompleted, userState);
}
private void (object arg)
{
if (this.GetBcpSharePathCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.GetBcpSharePathCompleted(this, new GetBcpSharePathCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/ValidateBcpShare")]
public bool (int caseContextArtifactID)
{
object[] array = this.Invoke("ValidateBcpShare", new object[1] {
caseContextArtifactID
});
return (bool)array[0];
}
public IAsyncResult (int caseContextArtifactID, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("ValidateBcpShare", new object[1] {
caseContextArtifactID
}, callback, asyncState);
}
public bool (IAsyncResult asyncResult)
{
object[] array = this.EndInvoke(asyncResult);
return (bool)array[0];
}
public void (int caseContextArtifactID)
{
ValidateBcpShareAsync(caseContextArtifactID, null);
}
public void (int caseContextArtifactID, object userState)
{
if (ValidateBcpShareOperationCompleted == null)
ValidateBcpShareOperationCompleted = OnValidateBcpShareOperationCompleted;
this.InvokeAsync("ValidateBcpShare", new object[1] {
caseContextArtifactID
}, ValidateBcpShareOperationCompleted, userState);
}
private void (object arg)
{
if (this.ValidateBcpShareCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.ValidateBcpShareCompleted(this, new ValidateBcpShareCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/GetBcpShareSpaceReport")]
[return: XmlArrayItem("ArrayOfString")]
[return: XmlArrayItem(NestingLevel = 1)]
public string[][] (int caseContextArtifactID)
{
object[] array = this.Invoke("GetBcpShareSpaceReport", new object[1] {
caseContextArtifactID
});
return (string[][])array[0];
}
public IAsyncResult (int caseContextArtifactID, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("GetBcpShareSpaceReport", new object[1] {
caseContextArtifactID
}, callback, asyncState);
}
public string[][] (IAsyncResult asyncResult)
{
object[] array = this.EndInvoke(asyncResult);
return (string[][])array[0];
}
public void (int caseContextArtifactID)
{
GetBcpShareSpaceReportAsync(caseContextArtifactID, null);
}
public void (int caseContextArtifactID, object userState)
{
if (GetBcpShareSpaceReportOperationCompleted == null)
GetBcpShareSpaceReportOperationCompleted = OnGetBcpShareSpaceReportOperationCompleted;
this.InvokeAsync("GetBcpShareSpaceReport", new object[1] {
caseContextArtifactID
}, GetBcpShareSpaceReportOperationCompleted, userState);
}
private void (object arg)
{
if (this.GetBcpShareSpaceReportCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.GetBcpShareSpaceReportCompleted(this, new GetBcpShareSpaceReportCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/GetDefaultRepositorySpaceReport")]
[return: XmlArrayItem("ArrayOfString")]
[return: XmlArrayItem(NestingLevel = 1)]
public string[][] GetDefaultRepositorySpaceReport(int caseContextArtifactID)
{
object[] array = this.Invoke("GetDefaultRepositorySpaceReport", new object[1] {
caseContextArtifactID
});
return (string[][])array[0];
}
public IAsyncResult BeginGetDefaultRepositorySpaceReport(int caseContextArtifactID, AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("GetDefaultRepositorySpaceReport", new object[1] {
caseContextArtifactID
}, callback, asyncState);
}
public string[][] EndGetDefaultRepositorySpaceReport(IAsyncResult asyncResult)
{
object[] array = this.EndInvoke(asyncResult);
return (string[][])array[0];
}
public void GetDefaultRepositorySpaceReportAsync(int caseContextArtifactID)
{
GetDefaultRepositorySpaceReportAsync(caseContextArtifactID, null);
}
public void GetDefaultRepositorySpaceReportAsync(int caseContextArtifactID, object userState)
{
if (GetDefaultRepositorySpaceReportOperationCompleted == null)
GetDefaultRepositorySpaceReportOperationCompleted = OnGetDefaultRepositorySpaceReportOperationCompleted;
this.InvokeAsync("GetDefaultRepositorySpaceReport", new object[1] {
caseContextArtifactID
}, GetDefaultRepositorySpaceReportOperationCompleted, userState);
}
private void OnGetDefaultRepositorySpaceReportOperationCompleted(object arg)
{
if (this.GetDefaultRepositorySpaceReportCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.GetDefaultRepositorySpaceReportCompleted(this, new GetDefaultRepositorySpaceReportCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
[SoapDocumentMethod("http://www.kCura.com/EDDS/FileManager/RepositoryVolumeMax")]
public int RepositoryVolumeMax()
{
object[] array = this.Invoke("RepositoryVolumeMax", new object[0]);
return (int)array[0];
}
public IAsyncResult BeginRepositoryVolumeMax(AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("RepositoryVolumeMax", new object[0], callback, asyncState);
}
public int EndRepositoryVolumeMax(IAsyncResult asyncResult)
{
object[] array = this.EndInvoke(asyncResult);
return (int)array[0];
}
public void RepositoryVolumeMaxAsync()
{
RepositoryVolumeMaxAsync(null);
}
public void RepositoryVolumeMaxAsync(object userState)
{
if (RepositoryVolumeMaxOperationCompleted == null)
RepositoryVolumeMaxOperationCompleted = OnRepositoryVolumeMaxOperationCompleted;
this.InvokeAsync("RepositoryVolumeMax", new object[0], RepositoryVolumeMaxOperationCompleted, userState);
}
private void OnRepositoryVolumeMaxOperationCompleted(object arg)
{
if (this.RepositoryVolumeMaxCompleted != null) {
InvokeCompletedEventArgs val = arg;
this.RepositoryVolumeMaxCompleted(this, new RepositoryVolumeMaxCompletedEventArgs(val.get_Results(), ((AsyncCompletedEventArgs)val).Error, ((AsyncCompletedEventArgs)val).Cancelled, ((AsyncCompletedEventArgs)val).UserState));
}
}
public void CancelAsync(object userState)
{
this.CancelAsync(userState);
}
}
}