|
Overview Service Description Client proxy Methods Init DeleteJob AddFile AddTextFile GetFile GetZipedFile GetTextFile SubmitPoy IsDoneYet Methods for binding PoyServiceSoap12 Init DeleteJob AddFile AddTextFile GetFile GetZipedFile GetTextFile SubmitPoy IsDoneYet |
C# Client Proxy Download // ------------------------------------------------------------------------------
// <autogenerated> // This code was generated by a tool. // Mono Runtime Version: 2.0.50727.1433 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerated> // ------------------------------------------------------------------------------ /// <remarks/> /// <remarks> /// /// ///The Application to use the following web service can be found <a href='http://poyws.osc.edu/Application.aspx'>here</a> ///<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>(Note: do not use space in any of the file names) /// /// ///</remarks> [System.Web.Services.WebServiceBinding(Name="PoyServiceSoap", Namespace="supramap")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class PoyService : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback InitOperationCompleted; private System.Threading.SendOrPostCallback DeleteJobOperationCompleted; private System.Threading.SendOrPostCallback AddFileOperationCompleted; private System.Threading.SendOrPostCallback AddTextFileOperationCompleted; private System.Threading.SendOrPostCallback GetFileOperationCompleted; private System.Threading.SendOrPostCallback GetZipedFileOperationCompleted; private System.Threading.SendOrPostCallback GetTextFileOperationCompleted; private System.Threading.SendOrPostCallback SubmitPoyOperationCompleted; private System.Threading.SendOrPostCallback IsDoneYetOperationCompleted; public PoyService() { this.Url = "http://poyws.osc.edu/PoyService.asmx"; } public event InitCompletedEventHandler InitCompleted; public event DeleteJobCompletedEventHandler DeleteJobCompleted; public event AddFileCompletedEventHandler AddFileCompleted; public event AddTextFileCompletedEventHandler AddTextFileCompleted; public event GetFileCompletedEventHandler GetFileCompleted; public event GetZipedFileCompletedEventHandler GetZipedFileCompleted; public event GetTextFileCompletedEventHandler GetTextFileCompleted; public event SubmitPoyCompletedEventHandler SubmitPoyCompleted; public event IsDoneYetCompletedEventHandler IsDoneYetCompleted; /// <remarks> ///The 'Init' method basically creates a directory on the super computer it returns a token that must be /// used on all subsequent method calls as the jobId parameter.Note this token will only work with the ipaddress that was used to /// call this method. Note it is not enforced but it highly encouraged to use this method over https. /// to get a pass prase to use this web service please vist http://glenn-webservice.bmi.ohio-state.edu/Application.aspx /// The current to option for resource are Glenn and supradev ///</remarks> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("supramap/Init", RequestNamespace="supramap", ResponseNamespace="supramap", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public int Init(string passPhase, string resource) { object[] results = this.Invoke("Init", new object[] { passPhase, resource}); return ((int)(results[0])); } public System.IAsyncResult BeginInit(string passPhase, string resource, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Init", new object[] { passPhase, resource}, callback, asyncState); } public int EndInit(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } public void InitAsync(string passPhase, string resource) { this.InitAsync(passPhase, resource, null); } public void InitAsync(string passPhase, string resource, object userState) { if ((this.InitOperationCompleted == null)) { this.InitOperationCompleted = new System.Threading.SendOrPostCallback( this.OnInitCompleted); } this.InvokeAsync("Init", new object[] { passPhase, resource}, this.InitOperationCompleted, userState); } private void OnInitCompleted(object arg) { if ((this.InitCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = (( System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.InitCompleted(this, new InitCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// <remarks> ///This method removes all files on the super computer for this job ///</remarks> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("supramap/DeleteJob", RequestNamespace="supramap", ResponseNamespace="supramap", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public bool DeleteJob(int jobId) { object[] results = this.Invoke("DeleteJob", new object[] { jobId}); return ((bool)(results[0])); } public System.IAsyncResult BeginDeleteJob(int jobId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteJob", new object[] { jobId}, callback, asyncState); } public bool EndDeleteJob(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } public void DeleteJobAsync(int jobId) { this.DeleteJobAsync(jobId, null); } public void DeleteJobAsync(int jobId, object userState) { if ((this.DeleteJobOperationCompleted == null)) { this.DeleteJobOperationCompleted = new System.Threading.SendOrPostCallback( this.OnDeleteJobCompleted); } this.InvokeAsync("DeleteJob", new object[] { jobId}, this.DeleteJobOperationCompleted, userState); } private void OnDeleteJobCompleted(object arg) { if ((this.DeleteJobCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = (( System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteJobCompleted(this, new DeleteJobCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// <remarks> ///The 'AddFile' method is used to basically put a file on the super /// computer. It should be called once to a load a .poy script. Plus /// it should be called for each file that the POY script references. /// It is the responsibility of the downstream client developer to /// generate the POY scripts this places more work in there hands but /// also give them great flexibility to design web apps that can /// use POY for anything. /// Note: there is a bug and the method won't work if there is a space in any of the file names /// ///</remarks> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("supramap/AddFile", RequestNamespace="supramap", ResponseNamespace="supramap", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public string AddFile(int jobId, byte[] fileData, string fileName) { object[] results = this.Invoke("AddFile", new object[] { jobId, fileData, fileName}); return ((string)(results[0])); } public System.IAsyncResult BeginAddFile(int jobId, byte[] fileData, string fileName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddFile", new object[] { jobId, fileData, fileName}, callback, asyncState); } public string EndAddFile(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } public void AddFileAsync(int jobId, byte[] fileData, string fileName) { this.AddFileAsync(jobId, fileData, fileName, null); } public void AddFileAsync(int jobId, byte[] fileData, string fileName, object userState) { if ((this.AddFileOperationCompleted == null)) { this.AddFileOperationCompleted = new System.Threading.SendOrPostCallback( this.OnAddFileCompleted); } this.InvokeAsync("AddFile", new object[] { jobId, fileData, fileName}, this.AddFileOperationCompleted, userState); } private void OnAddFileCompleted(object arg) { if ((this.AddFileCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = (( System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddFileCompleted(this, new AddFileCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// <remarks> ///The AddTextFile method is an alternative to the Add File command. This function allows the permissioned user to add a file as a simple string instead of using binary data in the fileData field. ///</remarks> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("supramap/AddTextFile", RequestNamespace="supramap", ResponseNamespace="supramap", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public string AddTextFile(int jobId, string fileData, string fileName) { object[] results = this.Invoke("AddTextFile", new object[] { jobId, fileData, fileName}); return ((string)(results[0])); } public System.IAsyncResult BeginAddTextFile(int jobId, string fileData, string fileName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddTextFile", new object[] { jobId, fileData, fileName}, callback, asyncState); } public string EndAddTextFile(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } public void AddTextFileAsync(int jobId, string fileData, string fileName) { this.AddTextFileAsync(jobId, fileData, fileName, null); } public void AddTextFileAsync(int jobId, string fileData, string fileName, object userState) { if ((this.AddTextFileOperationCompleted == null)) { this.AddTextFileOperationCompleted = new System.Threading.SendOrPostCallback( this.OnAddTextFileCompleted); } this.InvokeAsync("AddTextFile", new object[] { jobId, fileData, fileName}, this.AddTextFileOperationCompleted, userState); } private void OnAddTextFileCompleted(object arg) { if ((this.AddTextFileCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = (( System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddTextFileCompleted(this, new AddTextFileCompletedEventArgs( invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// <remarks> ///The GetFile method is utilized to retrieve the output files specified in the Poy script. This function is called once per file ///</remarks> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("supramap/GetFile", RequestNamespace="supramap", ResponseNamespace="supramap", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public byte[] GetFile(int jobId, string fileName) { object[] results = this.Invoke("GetFile", new object[] { jobId, fileName}); return ((byte[])(results[0])); } public System.IAsyncResult BeginGetFile(int jobId, string fileName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetFile", new object[] { jobId, fileName}, callback, asyncState); } public byte[] EndGetFile(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((byte[])(results[0])); } public void GetFileAsync(int jobId, string fileName) { this.GetFileAsync(jobId, fileName, null); } public void GetFileAsync(int jobId, string fileName, object userState) { if ((this.GetFileOperationCompleted == null)) { this.GetFileOperationCompleted = new System.Threading.SendOrPostCallback( this.OnGetFileCompleted); } this.InvokeAsync("GetFile", new object[] { jobId, fileName}, this.GetFileOperationCompleted, userState); } private void OnGetFileCompleted(object arg) { if ((this.GetFileCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = (( System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetFileCompleted(this, new GetFileCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// <remarks> ///The GetZipedFile is a second method that can be used to retrieve an output file. This command allows the user to compress the file prior to retrieving it. ///</remarks> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("supramap/GetZipedFile", RequestNamespace="supramap", ResponseNamespace="supramap", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public byte[] GetZipedFile(int jobId, string fileName, string compressionType) { object[] results = this.Invoke("GetZipedFile", new object[] { jobId, fileName, compressionType}); return ((byte[])(results[0])); } public System.IAsyncResult BeginGetZipedFile(int jobId, string fileName, string compressionType, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetZipedFile", new object[] { jobId, fileName, compressionType}, callback, asyncState); } public byte[] EndGetZipedFile(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((byte[])(results[0])); } public void GetZipedFileAsync(int jobId, string fileName, string compressionType) { this.GetZipedFileAsync(jobId, fileName, compressionType, null); } public void GetZipedFileAsync(int jobId, string fileName, string compressionType, object userState) { if ((this.GetZipedFileOperationCompleted == null)) { this.GetZipedFileOperationCompleted = new System.Threading.SendOrPostCallback( this.OnGetZipedFileCompleted); } this.InvokeAsync("GetZipedFile", new object[] { jobId, fileName, compressionType}, this.GetZipedFileOperationCompleted, userState); } private void OnGetZipedFileCompleted(object arg) { if ((this.GetZipedFileCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = (( System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetZipedFileCompleted(this, new GetZipedFileCompletedEventArgs( invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// <remarks> ///The basically 'GetFile' but returns a string instead of binary data should only be used on text files ///</remarks> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("supramap/GetTextFile", RequestNamespace="supramap", ResponseNamespace="supramap", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public string GetTextFile(int jobId, string fileName) { object[] results = this.Invoke("GetTextFile", new object[] { jobId, fileName}); return ((string)(results[0])); } public System.IAsyncResult BeginGetTextFile(int jobId, string fileName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetTextFile", new object[] { jobId, fileName}, callback, asyncState); } public string EndGetTextFile(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } public void GetTextFileAsync(int jobId, string fileName) { this.GetTextFileAsync(jobId, fileName, null); } public void GetTextFileAsync(int jobId, string fileName, object userState) { if ((this.GetTextFileOperationCompleted == null)) { this.GetTextFileOperationCompleted = new System.Threading.SendOrPostCallback( this.OnGetTextFileCompleted); } this.InvokeAsync("GetTextFile", new object[] { jobId, fileName}, this.GetTextFileOperationCompleted, userState); } private void OnGetTextFileCompleted(object arg) { if ((this.GetTextFileCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = (( System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetTextFileCompleted(this, new GetTextFileCompletedEventArgs( invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// <remarks> /// The 'SubmitPoy' method start a job on the super computer /// that start the POY job. When running a job on a super computer /// you have to request a what resource you need like how many /// processors, how many nodes, how much memory and how long it /// will take. If you ask for a lot of resources your job could /// get scheduled for a future date instead of running immediately. /// So it would not be suitable for realtime-ish apps. On the other /// hand if you request to little resources your job might not finish. /// Also we could extend the web service by adding new method that /// are similar to this one but only use other back-end Linux tools. /// These methods could take advantage of all of the existing infrastructure. ///</remarks> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("supramap/SubmitPoy", RequestNamespace="supramap", ResponseNamespace="supramap", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public string SubmitPoy(int jobId, int numberOfNodes, int wallTimeHours, int wallTimeMinutes, string postBackURL) { object[] results = this.Invoke("SubmitPoy", new object[] { jobId, numberOfNodes, wallTimeHours, wallTimeMinutes, postBackURL}); return ((string)(results[0])); } public System.IAsyncResult BeginSubmitPoy(int jobId, int numberOfNodes, int wallTimeHours, int wallTimeMinutes, string postBackURL, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SubmitPoy", new object[] { jobId, numberOfNodes, wallTimeHours, wallTimeMinutes, postBackURL}, callback, asyncState); } public string EndSubmitPoy(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } public void SubmitPoyAsync(int jobId, int numberOfNodes, int wallTimeHours, int wallTimeMinutes, string postBackURL) { this.SubmitPoyAsync(jobId, numberOfNodes, wallTimeHours, wallTimeMinutes, postBackURL, null); } public void SubmitPoyAsync(int jobId, int numberOfNodes, int wallTimeHours, int wallTimeMinutes, string postBackURL, object userState) { if ((this.SubmitPoyOperationCompleted == null)) { this.SubmitPoyOperationCompleted = new System.Threading.SendOrPostCallback( this.OnSubmitPoyCompleted); } this.InvokeAsync("SubmitPoy", new object[] { jobId, numberOfNodes, wallTimeHours, wallTimeMinutes, postBackURL}, this.SubmitPoyOperationCompleted, userState); } private void OnSubmitPoyCompleted(object arg) { if ((this.SubmitPoyCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = (( System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SubmitPoyCompleted(this, new SubmitPoyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// <remarks> /// The client must periodically poll the service after it submits its job so it knows when its job is done. /// The 'IsDoneYet' method does just that and returns true if the job is done and false if the job is not /// done yet. The command value can ether be 'poy' or 'GenPhen' ///</remarks> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("supramap/IsDoneYet", RequestNamespace="supramap", ResponseNamespace="supramap", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)] public bool IsDoneYet(int jobId, string command) { object[] results = this.Invoke("IsDoneYet", new object[] { jobId, command}); return ((bool)(results[0])); } public System.IAsyncResult BeginIsDoneYet(int jobId, string command, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("IsDoneYet", new object[] { jobId, command}, callback, asyncState); } public bool EndIsDoneYet(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } public void IsDoneYetAsync(int jobId, string command) { this.IsDoneYetAsync(jobId, command, null); } public void IsDoneYetAsync(int jobId, string command, object userState) { if ((this.IsDoneYetOperationCompleted == null)) { this.IsDoneYetOperationCompleted = new System.Threading.SendOrPostCallback( this.OnIsDoneYetCompleted); } this.InvokeAsync("IsDoneYet", new object[] { jobId, command}, this.IsDoneYetOperationCompleted, userState); } private void OnIsDoneYetCompleted(object arg) { if ((this.IsDoneYetCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = (( System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.IsDoneYetCompleted(this, new IsDoneYetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } } public partial class InitCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal InitCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public int Result { get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } public delegate void InitCompletedEventHandler(object sender, InitCompletedEventArgs args); public partial class DeleteJobCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal DeleteJobCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } public delegate void DeleteJobCompletedEventHandler(object sender, DeleteJobCompletedEventArgs args); public partial class AddFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal AddFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } public delegate void AddFileCompletedEventHandler(object sender, AddFileCompletedEventArgs args); public partial class AddTextFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal AddTextFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } public delegate void AddTextFileCompletedEventHandler(object sender, AddTextFileCompletedEventArgs args); public partial class GetFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public byte[] Result { get { this.RaiseExceptionIfNecessary(); return ((byte[])(this.results[0])); } } } public delegate void GetFileCompletedEventHandler(object sender, GetFileCompletedEventArgs args); public partial class GetZipedFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetZipedFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public byte[] Result { get { this.RaiseExceptionIfNecessary(); return ((byte[])(this.results[0])); } } } public delegate void GetZipedFileCompletedEventHandler(object sender, GetZipedFileCompletedEventArgs args); public partial class GetTextFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetTextFileCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } public delegate void GetTextFileCompletedEventHandler(object sender, GetTextFileCompletedEventArgs args); public partial class SubmitPoyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal SubmitPoyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } public delegate void SubmitPoyCompletedEventHandler(object sender, SubmitPoyCompletedEventArgs args); public partial class IsDoneYetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal IsDoneYetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } public delegate void IsDoneYetCompletedEventHandler(object sender, IsDoneYetCompletedEventArgs args); |