//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.34003
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// This code was auto-generated by Microsoft.Silverlight.ServiceReference, version 4.0.50826.0
// 
namespace ZipBrowser.SR {
    using System.Runtime.Serialization;
    
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute(Name="ZipItem", Namespace="http://tempuri.org/")]
    public partial class ZipItem : object, System.ComponentModel.INotifyPropertyChanged {
        
        private string PathField;
        
        private System.Collections.ObjectModel.ObservableCollection<ZipBrowser.SR.ZipItem> ItemsField;
        
        private string FileNameField;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false)]
        public string Path {
            get {
                return this.PathField;
            }
            set {
                if ((object.ReferenceEquals(this.PathField, value) != true)) {
                    this.PathField = value;
                    this.RaisePropertyChanged("Path");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
        public System.Collections.ObjectModel.ObservableCollection<ZipBrowser.SR.ZipItem> Items {
            get {
                return this.ItemsField;
            }
            set {
                if ((object.ReferenceEquals(this.ItemsField, value) != true)) {
                    this.ItemsField = value;
                    this.RaisePropertyChanged("Items");
                }
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
        public string FileName {
            get {
                return this.FileNameField;
            }
            set {
                if ((object.ReferenceEquals(this.FileNameField, value) != true)) {
                    this.FileNameField = value;
                    this.RaisePropertyChanged("FileName");
                }
            }
        }
        
        public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
        
        protected void RaisePropertyChanged(string propertyName) {
            System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if ((propertyChanged != null)) {
                propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
            }
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="SR.ZipBrowserServiceSoap")]
    public interface ZipBrowserServiceSoap {
        
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/GetContent", ReplyAction="*")]
        System.IAsyncResult BeginGetContent(ZipBrowser.SR.GetContentRequest request, System.AsyncCallback callback, object asyncState);
        
        ZipBrowser.SR.GetContentResponse EndGetContent(System.IAsyncResult result);
        
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/GetEntryText", ReplyAction="*")]
        System.IAsyncResult BeginGetEntryText(ZipBrowser.SR.GetEntryTextRequest request, System.AsyncCallback callback, object asyncState);
        
        ZipBrowser.SR.GetEntryTextResponse EndGetEntryText(System.IAsyncResult result);
        
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/GetEntryBytes", ReplyAction="*")]
        System.IAsyncResult BeginGetEntryBytes(ZipBrowser.SR.GetEntryBytesRequest request, System.AsyncCallback callback, object asyncState);
        
        ZipBrowser.SR.GetEntryBytesResponse EndGetEntryBytes(System.IAsyncResult result);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class GetContentRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="GetContent", Namespace="http://tempuri.org/", Order=0)]
        public ZipBrowser.SR.GetContentRequestBody Body;
        
        public GetContentRequest() {
        }
        
        public GetContentRequest(ZipBrowser.SR.GetContentRequestBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class GetContentRequestBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string url;
        
        public GetContentRequestBody() {
        }
        
        public GetContentRequestBody(string url) {
            this.url = url;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class GetContentResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="GetContentResponse", Namespace="http://tempuri.org/", Order=0)]
        public ZipBrowser.SR.GetContentResponseBody Body;
        
        public GetContentResponse() {
        }
        
        public GetContentResponse(ZipBrowser.SR.GetContentResponseBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class GetContentResponseBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public ZipBrowser.SR.ZipItem GetContentResult;
        
        public GetContentResponseBody() {
        }
        
        public GetContentResponseBody(ZipBrowser.SR.ZipItem GetContentResult) {
            this.GetContentResult = GetContentResult;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class GetEntryTextRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="GetEntryText", Namespace="http://tempuri.org/", Order=0)]
        public ZipBrowser.SR.GetEntryTextRequestBody Body;
        
        public GetEntryTextRequest() {
        }
        
        public GetEntryTextRequest(ZipBrowser.SR.GetEntryTextRequestBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class GetEntryTextRequestBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string url;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
        public string path;
        
        public GetEntryTextRequestBody() {
        }
        
        public GetEntryTextRequestBody(string url, string path) {
            this.url = url;
            this.path = path;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class GetEntryTextResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="GetEntryTextResponse", Namespace="http://tempuri.org/", Order=0)]
        public ZipBrowser.SR.GetEntryTextResponseBody Body;
        
        public GetEntryTextResponse() {
        }
        
        public GetEntryTextResponse(ZipBrowser.SR.GetEntryTextResponseBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class GetEntryTextResponseBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string GetEntryTextResult;
        
        public GetEntryTextResponseBody() {
        }
        
        public GetEntryTextResponseBody(string GetEntryTextResult) {
            this.GetEntryTextResult = GetEntryTextResult;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class GetEntryBytesRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="GetEntryBytes", Namespace="http://tempuri.org/", Order=0)]
        public ZipBrowser.SR.GetEntryBytesRequestBody Body;
        
        public GetEntryBytesRequest() {
        }
        
        public GetEntryBytesRequest(ZipBrowser.SR.GetEntryBytesRequestBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class GetEntryBytesRequestBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string url;
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
        public string path;
        
        public GetEntryBytesRequestBody() {
        }
        
        public GetEntryBytesRequestBody(string url, string path) {
            this.url = url;
            this.path = path;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class GetEntryBytesResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="GetEntryBytesResponse", Namespace="http://tempuri.org/", Order=0)]
        public ZipBrowser.SR.GetEntryBytesResponseBody Body;
        
        public GetEntryBytesResponse() {
        }
        
        public GetEntryBytesResponse(ZipBrowser.SR.GetEntryBytesResponseBody Body) {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class GetEntryBytesResponseBody {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public byte[] GetEntryBytesResult;
        
        public GetEntryBytesResponseBody() {
        }
        
        public GetEntryBytesResponseBody(byte[] GetEntryBytesResult) {
            this.GetEntryBytesResult = GetEntryBytesResult;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface ZipBrowserServiceSoapChannel : ZipBrowser.SR.ZipBrowserServiceSoap, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class GetContentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        public GetContentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        public ZipBrowser.SR.ZipItem Result {
            get {
                base.RaiseExceptionIfNecessary();
                return ((ZipBrowser.SR.ZipItem)(this.results[0]));
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class GetEntryTextCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        public GetEntryTextCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        public string Result {
            get {
                base.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class GetEntryBytesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        public GetEntryBytesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        public byte[] Result {
            get {
                base.RaiseExceptionIfNecessary();
                return ((byte[])(this.results[0]));
            }
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class ZipBrowserServiceSoapClient : System.ServiceModel.ClientBase<ZipBrowser.SR.ZipBrowserServiceSoap>, ZipBrowser.SR.ZipBrowserServiceSoap {
        
        private BeginOperationDelegate onBeginGetContentDelegate;
        
        private EndOperationDelegate onEndGetContentDelegate;
        
        private System.Threading.SendOrPostCallback onGetContentCompletedDelegate;
        
        private BeginOperationDelegate onBeginGetEntryTextDelegate;
        
        private EndOperationDelegate onEndGetEntryTextDelegate;
        
        private System.Threading.SendOrPostCallback onGetEntryTextCompletedDelegate;
        
        private BeginOperationDelegate onBeginGetEntryBytesDelegate;
        
        private EndOperationDelegate onEndGetEntryBytesDelegate;
        
        private System.Threading.SendOrPostCallback onGetEntryBytesCompletedDelegate;
        
        private BeginOperationDelegate onBeginOpenDelegate;
        
        private EndOperationDelegate onEndOpenDelegate;
        
        private System.Threading.SendOrPostCallback onOpenCompletedDelegate;
        
        private BeginOperationDelegate onBeginCloseDelegate;
        
        private EndOperationDelegate onEndCloseDelegate;
        
        private System.Threading.SendOrPostCallback onCloseCompletedDelegate;
        
        public ZipBrowserServiceSoapClient() {
        }
        
        public ZipBrowserServiceSoapClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public ZipBrowserServiceSoapClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public ZipBrowserServiceSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public ZipBrowserServiceSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        public System.Net.CookieContainer CookieContainer {
            get {
                System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
                if ((httpCookieContainerManager != null)) {
                    return httpCookieContainerManager.CookieContainer;
                }
                else {
                    return null;
                }
            }
            set {
                System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
                if ((httpCookieContainerManager != null)) {
                    httpCookieContainerManager.CookieContainer = value;
                }
                else {
                    throw new System.InvalidOperationException("Unable to set the CookieContainer. Please make sure the binding contains an HttpC" +
                            "ookieContainerBindingElement.");
                }
            }
        }
        
        public event System.EventHandler<GetContentCompletedEventArgs> GetContentCompleted;
        
        public event System.EventHandler<GetEntryTextCompletedEventArgs> GetEntryTextCompleted;
        
        public event System.EventHandler<GetEntryBytesCompletedEventArgs> GetEntryBytesCompleted;
        
        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> OpenCompleted;
        
        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> CloseCompleted;
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.IAsyncResult ZipBrowser.SR.ZipBrowserServiceSoap.BeginGetContent(ZipBrowser.SR.GetContentRequest request, System.AsyncCallback callback, object asyncState) {
            return base.Channel.BeginGetContent(request, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private System.IAsyncResult BeginGetContent(string url, System.AsyncCallback callback, object asyncState) {
            ZipBrowser.SR.GetContentRequest inValue = new ZipBrowser.SR.GetContentRequest();
            inValue.Body = new ZipBrowser.SR.GetContentRequestBody();
            inValue.Body.url = url;
            return ((ZipBrowser.SR.ZipBrowserServiceSoap)(this)).BeginGetContent(inValue, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        ZipBrowser.SR.GetContentResponse ZipBrowser.SR.ZipBrowserServiceSoap.EndGetContent(System.IAsyncResult result) {
            return base.Channel.EndGetContent(result);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private ZipBrowser.SR.ZipItem EndGetContent(System.IAsyncResult result) {
            ZipBrowser.SR.GetContentResponse retVal = ((ZipBrowser.SR.ZipBrowserServiceSoap)(this)).EndGetContent(result);
            return retVal.Body.GetContentResult;
        }
        
        private System.IAsyncResult OnBeginGetContent(object[] inValues, System.AsyncCallback callback, object asyncState) {
            string url = ((string)(inValues[0]));
            return this.BeginGetContent(url, callback, asyncState);
        }
        
        private object[] OnEndGetContent(System.IAsyncResult result) {
            ZipBrowser.SR.ZipItem retVal = this.EndGetContent(result);
            return new object[] {
                    retVal};
        }
        
        private void OnGetContentCompleted(object state) {
            if ((this.GetContentCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.GetContentCompleted(this, new GetContentCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void GetContentAsync(string url) {
            this.GetContentAsync(url, null);
        }
        
        public void GetContentAsync(string url, object userState) {
            if ((this.onBeginGetContentDelegate == null)) {
                this.onBeginGetContentDelegate = new BeginOperationDelegate(this.OnBeginGetContent);
            }
            if ((this.onEndGetContentDelegate == null)) {
                this.onEndGetContentDelegate = new EndOperationDelegate(this.OnEndGetContent);
            }
            if ((this.onGetContentCompletedDelegate == null)) {
                this.onGetContentCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetContentCompleted);
            }
            base.InvokeAsync(this.onBeginGetContentDelegate, new object[] {
                        url}, this.onEndGetContentDelegate, this.onGetContentCompletedDelegate, userState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.IAsyncResult ZipBrowser.SR.ZipBrowserServiceSoap.BeginGetEntryText(ZipBrowser.SR.GetEntryTextRequest request, System.AsyncCallback callback, object asyncState) {
            return base.Channel.BeginGetEntryText(request, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private System.IAsyncResult BeginGetEntryText(string url, string path, System.AsyncCallback callback, object asyncState) {
            ZipBrowser.SR.GetEntryTextRequest inValue = new ZipBrowser.SR.GetEntryTextRequest();
            inValue.Body = new ZipBrowser.SR.GetEntryTextRequestBody();
            inValue.Body.url = url;
            inValue.Body.path = path;
            return ((ZipBrowser.SR.ZipBrowserServiceSoap)(this)).BeginGetEntryText(inValue, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        ZipBrowser.SR.GetEntryTextResponse ZipBrowser.SR.ZipBrowserServiceSoap.EndGetEntryText(System.IAsyncResult result) {
            return base.Channel.EndGetEntryText(result);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private string EndGetEntryText(System.IAsyncResult result) {
            ZipBrowser.SR.GetEntryTextResponse retVal = ((ZipBrowser.SR.ZipBrowserServiceSoap)(this)).EndGetEntryText(result);
            return retVal.Body.GetEntryTextResult;
        }
        
        private System.IAsyncResult OnBeginGetEntryText(object[] inValues, System.AsyncCallback callback, object asyncState) {
            string url = ((string)(inValues[0]));
            string path = ((string)(inValues[1]));
            return this.BeginGetEntryText(url, path, callback, asyncState);
        }
        
        private object[] OnEndGetEntryText(System.IAsyncResult result) {
            string retVal = this.EndGetEntryText(result);
            return new object[] {
                    retVal};
        }
        
        private void OnGetEntryTextCompleted(object state) {
            if ((this.GetEntryTextCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.GetEntryTextCompleted(this, new GetEntryTextCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void GetEntryTextAsync(string url, string path) {
            this.GetEntryTextAsync(url, path, null);
        }
        
        public void GetEntryTextAsync(string url, string path, object userState) {
            if ((this.onBeginGetEntryTextDelegate == null)) {
                this.onBeginGetEntryTextDelegate = new BeginOperationDelegate(this.OnBeginGetEntryText);
            }
            if ((this.onEndGetEntryTextDelegate == null)) {
                this.onEndGetEntryTextDelegate = new EndOperationDelegate(this.OnEndGetEntryText);
            }
            if ((this.onGetEntryTextCompletedDelegate == null)) {
                this.onGetEntryTextCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetEntryTextCompleted);
            }
            base.InvokeAsync(this.onBeginGetEntryTextDelegate, new object[] {
                        url,
                        path}, this.onEndGetEntryTextDelegate, this.onGetEntryTextCompletedDelegate, userState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.IAsyncResult ZipBrowser.SR.ZipBrowserServiceSoap.BeginGetEntryBytes(ZipBrowser.SR.GetEntryBytesRequest request, System.AsyncCallback callback, object asyncState) {
            return base.Channel.BeginGetEntryBytes(request, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private System.IAsyncResult BeginGetEntryBytes(string url, string path, System.AsyncCallback callback, object asyncState) {
            ZipBrowser.SR.GetEntryBytesRequest inValue = new ZipBrowser.SR.GetEntryBytesRequest();
            inValue.Body = new ZipBrowser.SR.GetEntryBytesRequestBody();
            inValue.Body.url = url;
            inValue.Body.path = path;
            return ((ZipBrowser.SR.ZipBrowserServiceSoap)(this)).BeginGetEntryBytes(inValue, callback, asyncState);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        ZipBrowser.SR.GetEntryBytesResponse ZipBrowser.SR.ZipBrowserServiceSoap.EndGetEntryBytes(System.IAsyncResult result) {
            return base.Channel.EndGetEntryBytes(result);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        private byte[] EndGetEntryBytes(System.IAsyncResult result) {
            ZipBrowser.SR.GetEntryBytesResponse retVal = ((ZipBrowser.SR.ZipBrowserServiceSoap)(this)).EndGetEntryBytes(result);
            return retVal.Body.GetEntryBytesResult;
        }
        
        private System.IAsyncResult OnBeginGetEntryBytes(object[] inValues, System.AsyncCallback callback, object asyncState) {
            string url = ((string)(inValues[0]));
            string path = ((string)(inValues[1]));
            return this.BeginGetEntryBytes(url, path, callback, asyncState);
        }
        
        private object[] OnEndGetEntryBytes(System.IAsyncResult result) {
            byte[] retVal = this.EndGetEntryBytes(result);
            return new object[] {
                    retVal};
        }
        
        private void OnGetEntryBytesCompleted(object state) {
            if ((this.GetEntryBytesCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.GetEntryBytesCompleted(this, new GetEntryBytesCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void GetEntryBytesAsync(string url, string path) {
            this.GetEntryBytesAsync(url, path, null);
        }
        
        public void GetEntryBytesAsync(string url, string path, object userState) {
            if ((this.onBeginGetEntryBytesDelegate == null)) {
                this.onBeginGetEntryBytesDelegate = new BeginOperationDelegate(this.OnBeginGetEntryBytes);
            }
            if ((this.onEndGetEntryBytesDelegate == null)) {
                this.onEndGetEntryBytesDelegate = new EndOperationDelegate(this.OnEndGetEntryBytes);
            }
            if ((this.onGetEntryBytesCompletedDelegate == null)) {
                this.onGetEntryBytesCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetEntryBytesCompleted);
            }
            base.InvokeAsync(this.onBeginGetEntryBytesDelegate, new object[] {
                        url,
                        path}, this.onEndGetEntryBytesDelegate, this.onGetEntryBytesCompletedDelegate, userState);
        }
        
        private System.IAsyncResult OnBeginOpen(object[] inValues, System.AsyncCallback callback, object asyncState) {
            return ((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(callback, asyncState);
        }
        
        private object[] OnEndOpen(System.IAsyncResult result) {
            ((System.ServiceModel.ICommunicationObject)(this)).EndOpen(result);
            return null;
        }
        
        private void OnOpenCompleted(object state) {
            if ((this.OpenCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.OpenCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void OpenAsync() {
            this.OpenAsync(null);
        }
        
        public void OpenAsync(object userState) {
            if ((this.onBeginOpenDelegate == null)) {
                this.onBeginOpenDelegate = new BeginOperationDelegate(this.OnBeginOpen);
            }
            if ((this.onEndOpenDelegate == null)) {
                this.onEndOpenDelegate = new EndOperationDelegate(this.OnEndOpen);
            }
            if ((this.onOpenCompletedDelegate == null)) {
                this.onOpenCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnOpenCompleted);
            }
            base.InvokeAsync(this.onBeginOpenDelegate, null, this.onEndOpenDelegate, this.onOpenCompletedDelegate, userState);
        }
        
        private System.IAsyncResult OnBeginClose(object[] inValues, System.AsyncCallback callback, object asyncState) {
            return ((System.ServiceModel.ICommunicationObject)(this)).BeginClose(callback, asyncState);
        }
        
        private object[] OnEndClose(System.IAsyncResult result) {
            ((System.ServiceModel.ICommunicationObject)(this)).EndClose(result);
            return null;
        }
        
        private void OnCloseCompleted(object state) {
            if ((this.CloseCompleted != null)) {
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
                this.CloseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
            }
        }
        
        public void CloseAsync() {
            this.CloseAsync(null);
        }
        
        public void CloseAsync(object userState) {
            if ((this.onBeginCloseDelegate == null)) {
                this.onBeginCloseDelegate = new BeginOperationDelegate(this.OnBeginClose);
            }
            if ((this.onEndCloseDelegate == null)) {
                this.onEndCloseDelegate = new EndOperationDelegate(this.OnEndClose);
            }
            if ((this.onCloseCompletedDelegate == null)) {
                this.onCloseCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCloseCompleted);
            }
            base.InvokeAsync(this.onBeginCloseDelegate, null, this.onEndCloseDelegate, this.onCloseCompletedDelegate, userState);
        }
        
        protected override ZipBrowser.SR.ZipBrowserServiceSoap CreateChannel() {
            return new ZipBrowserServiceSoapClientChannel(this);
        }
        
        private class ZipBrowserServiceSoapClientChannel : ChannelBase<ZipBrowser.SR.ZipBrowserServiceSoap>, ZipBrowser.SR.ZipBrowserServiceSoap {
            
            public ZipBrowserServiceSoapClientChannel(System.ServiceModel.ClientBase<ZipBrowser.SR.ZipBrowserServiceSoap> client) : 
                    base(client) {
            }
            
            public System.IAsyncResult BeginGetContent(ZipBrowser.SR.GetContentRequest request, System.AsyncCallback callback, object asyncState) {
                object[] _args = new object[1];
                _args[0] = request;
                System.IAsyncResult _result = base.BeginInvoke("GetContent", _args, callback, asyncState);
                return _result;
            }
            
            public ZipBrowser.SR.GetContentResponse EndGetContent(System.IAsyncResult result) {
                object[] _args = new object[0];
                ZipBrowser.SR.GetContentResponse _result = ((ZipBrowser.SR.GetContentResponse)(base.EndInvoke("GetContent", _args, result)));
                return _result;
            }
            
            public System.IAsyncResult BeginGetEntryText(ZipBrowser.SR.GetEntryTextRequest request, System.AsyncCallback callback, object asyncState) {
                object[] _args = new object[1];
                _args[0] = request;
                System.IAsyncResult _result = base.BeginInvoke("GetEntryText", _args, callback, asyncState);
                return _result;
            }
            
            public ZipBrowser.SR.GetEntryTextResponse EndGetEntryText(System.IAsyncResult result) {
                object[] _args = new object[0];
                ZipBrowser.SR.GetEntryTextResponse _result = ((ZipBrowser.SR.GetEntryTextResponse)(base.EndInvoke("GetEntryText", _args, result)));
                return _result;
            }
            
            public System.IAsyncResult BeginGetEntryBytes(ZipBrowser.SR.GetEntryBytesRequest request, System.AsyncCallback callback, object asyncState) {
                object[] _args = new object[1];
                _args[0] = request;
                System.IAsyncResult _result = base.BeginInvoke("GetEntryBytes", _args, callback, asyncState);
                return _result;
            }
            
            public ZipBrowser.SR.GetEntryBytesResponse EndGetEntryBytes(System.IAsyncResult result) {
                object[] _args = new object[0];
                ZipBrowser.SR.GetEntryBytesResponse _result = ((ZipBrowser.SR.GetEntryBytesResponse)(base.EndInvoke("GetEntryBytes", _args, result)));
                return _result;
            }
        }
    }
}
