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

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.34209.
// 
#pragma warning disable 1591

namespace AgentWebservicesClient.AgentWebCommWS {
    using System;
    using System.Web.Services;
    using System.Diagnostics;
    using System.Web.Services.Protocols;
    using System.Xml.Serialization;
    using System.ComponentModel;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="AgentWebCommWSSoap", Namespace="http://nortel.com/CCMMAgentWebservices/")]
    public partial class AgentWebCommWS : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback CreateWCSessionOperationCompleted;
        
        private System.Threading.SendOrPostCallback WriteChatMessageOperationCompleted;
        
        private System.Threading.SendOrPostCallback ReadChatMessageOperationCompleted;
        
        private System.Threading.SendOrPostCallback UpdateAliveTimeOperationCompleted;
        
        private System.Threading.SendOrPostCallback CloseSessionOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public AgentWebCommWS() {
            this.Url = global::AgentWebservicesClient.Properties.Settings.Default.AgentWebservicesClient_AgentWebCommWS_AgentWebCommWS;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true) 
                            && (this.useDefaultCredentialsSetExplicitly == false)) 
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }
        
        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        /// <remarks/>
        public event CreateWCSessionCompletedEventHandler CreateWCSessionCompleted;
        
        /// <remarks/>
        public event WriteChatMessageCompletedEventHandler WriteChatMessageCompleted;
        
        /// <remarks/>
        public event ReadChatMessageCompletedEventHandler ReadChatMessageCompleted;
        
        /// <remarks/>
        public event UpdateAliveTimeCompletedEventHandler UpdateAliveTimeCompleted;
        
        /// <remarks/>
        public event CloseSessionCompletedEventHandler CloseSessionCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://nortel.com/CCMMAgentWebservices/CreateWCSession", RequestNamespace="http://nortel.com/CCMMAgentWebservices/", ResponseNamespace="http://nortel.com/CCMMAgentWebservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public long CreateWCSession(long id, string sessionKey) {
            object[] results = this.Invoke("CreateWCSession", new object[] {
                        id,
                        sessionKey});
            return ((long)(results[0]));
        }
        
        /// <remarks/>
        public void CreateWCSessionAsync(long id, string sessionKey) {
            this.CreateWCSessionAsync(id, sessionKey, null);
        }
        
        /// <remarks/>
        public void CreateWCSessionAsync(long id, string sessionKey, object userState) {
            if ((this.CreateWCSessionOperationCompleted == null)) {
                this.CreateWCSessionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateWCSessionOperationCompleted);
            }
            this.InvokeAsync("CreateWCSession", new object[] {
                        id,
                        sessionKey}, this.CreateWCSessionOperationCompleted, userState);
        }
        
        private void OnCreateWCSessionOperationCompleted(object arg) {
            if ((this.CreateWCSessionCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CreateWCSessionCompleted(this, new CreateWCSessionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://nortel.com/CCMMAgentWebservices/WriteChatMessage", RequestNamespace="http://nortel.com/CCMMAgentWebservices/", ResponseNamespace="http://nortel.com/CCMMAgentWebservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public long WriteChatMessage(long id, string strNewMessage, string strHiddenMessage, long lMessageType, string sessionKey) {
            object[] results = this.Invoke("WriteChatMessage", new object[] {
                        id,
                        strNewMessage,
                        strHiddenMessage,
                        lMessageType,
                        sessionKey});
            return ((long)(results[0]));
        }
        
        /// <remarks/>
        public void WriteChatMessageAsync(long id, string strNewMessage, string strHiddenMessage, long lMessageType, string sessionKey) {
            this.WriteChatMessageAsync(id, strNewMessage, strHiddenMessage, lMessageType, sessionKey, null);
        }
        
        /// <remarks/>
        public void WriteChatMessageAsync(long id, string strNewMessage, string strHiddenMessage, long lMessageType, string sessionKey, object userState) {
            if ((this.WriteChatMessageOperationCompleted == null)) {
                this.WriteChatMessageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWriteChatMessageOperationCompleted);
            }
            this.InvokeAsync("WriteChatMessage", new object[] {
                        id,
                        strNewMessage,
                        strHiddenMessage,
                        lMessageType,
                        sessionKey}, this.WriteChatMessageOperationCompleted, userState);
        }
        
        private void OnWriteChatMessageOperationCompleted(object arg) {
            if ((this.WriteChatMessageCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.WriteChatMessageCompleted(this, new WriteChatMessageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://nortel.com/CCMMAgentWebservices/ReadChatMessage", RequestNamespace="http://nortel.com/CCMMAgentWebservices/", ResponseNamespace="http://nortel.com/CCMMAgentWebservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public ListOfWebCommsMessages ReadChatMessage(long id, System.DateTime dtReadTime, bool bIsWriting, string sessionKey) {
            object[] results = this.Invoke("ReadChatMessage", new object[] {
                        id,
                        dtReadTime,
                        bIsWriting,
                        sessionKey});
            return ((ListOfWebCommsMessages)(results[0]));
        }
        
        /// <remarks/>
        public void ReadChatMessageAsync(long id, System.DateTime dtReadTime, bool bIsWriting, string sessionKey) {
            this.ReadChatMessageAsync(id, dtReadTime, bIsWriting, sessionKey, null);
        }
        
        /// <remarks/>
        public void ReadChatMessageAsync(long id, System.DateTime dtReadTime, bool bIsWriting, string sessionKey, object userState) {
            if ((this.ReadChatMessageOperationCompleted == null)) {
                this.ReadChatMessageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnReadChatMessageOperationCompleted);
            }
            this.InvokeAsync("ReadChatMessage", new object[] {
                        id,
                        dtReadTime,
                        bIsWriting,
                        sessionKey}, this.ReadChatMessageOperationCompleted, userState);
        }
        
        private void OnReadChatMessageOperationCompleted(object arg) {
            if ((this.ReadChatMessageCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.ReadChatMessageCompleted(this, new ReadChatMessageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://nortel.com/CCMMAgentWebservices/UpdateAliveTime", RequestNamespace="http://nortel.com/CCMMAgentWebservices/", ResponseNamespace="http://nortel.com/CCMMAgentWebservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.DateTime UpdateAliveTime(long id, string sessionKey) {
            object[] results = this.Invoke("UpdateAliveTime", new object[] {
                        id,
                        sessionKey});
            return ((System.DateTime)(results[0]));
        }
        
        /// <remarks/>
        public void UpdateAliveTimeAsync(long id, string sessionKey) {
            this.UpdateAliveTimeAsync(id, sessionKey, null);
        }
        
        /// <remarks/>
        public void UpdateAliveTimeAsync(long id, string sessionKey, object userState) {
            if ((this.UpdateAliveTimeOperationCompleted == null)) {
                this.UpdateAliveTimeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateAliveTimeOperationCompleted);
            }
            this.InvokeAsync("UpdateAliveTime", new object[] {
                        id,
                        sessionKey}, this.UpdateAliveTimeOperationCompleted, userState);
        }
        
        private void OnUpdateAliveTimeOperationCompleted(object arg) {
            if ((this.UpdateAliveTimeCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.UpdateAliveTimeCompleted(this, new UpdateAliveTimeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://nortel.com/CCMMAgentWebservices/CloseSession", RequestNamespace="http://nortel.com/CCMMAgentWebservices/", ResponseNamespace="http://nortel.com/CCMMAgentWebservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public long CloseSession(long id, long lClosedReason, string strAgentNote, long lClosureType, string strClosureText, bool bEmailChatLog, string sessionKey) {
            object[] results = this.Invoke("CloseSession", new object[] {
                        id,
                        lClosedReason,
                        strAgentNote,
                        lClosureType,
                        strClosureText,
                        bEmailChatLog,
                        sessionKey});
            return ((long)(results[0]));
        }
        
        /// <remarks/>
        public void CloseSessionAsync(long id, long lClosedReason, string strAgentNote, long lClosureType, string strClosureText, bool bEmailChatLog, string sessionKey) {
            this.CloseSessionAsync(id, lClosedReason, strAgentNote, lClosureType, strClosureText, bEmailChatLog, sessionKey, null);
        }
        
        /// <remarks/>
        public void CloseSessionAsync(long id, long lClosedReason, string strAgentNote, long lClosureType, string strClosureText, bool bEmailChatLog, string sessionKey, object userState) {
            if ((this.CloseSessionOperationCompleted == null)) {
                this.CloseSessionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCloseSessionOperationCompleted);
            }
            this.InvokeAsync("CloseSession", new object[] {
                        id,
                        lClosedReason,
                        strAgentNote,
                        lClosureType,
                        strClosureText,
                        bEmailChatLog,
                        sessionKey}, this.CloseSessionOperationCompleted, userState);
        }
        
        private void OnCloseSessionOperationCompleted(object arg) {
            if ((this.CloseSessionCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CloseSessionCompleted(this, new CloseSessionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        public new void CancelAsync(object userState) {
            base.CancelAsync(userState);
        }
        
        private bool IsLocalFileSystemWebService(string url) {
            if (((url == null) 
                        || (url == string.Empty))) {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024) 
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
                return true;
            }
            return false;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34234")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.db.ccmm.applications.nortel.com")]
    public partial class ListOfWebCommsMessages {
        
        private System.DateTime readTimeField;
        
        private bool readTimeFieldSpecified;
        
        private bool isWritingField;
        
        private bool isWritingFieldSpecified;
        
        private System.DateTime lastAliveTimeField;
        
        private bool lastAliveTimeFieldSpecified;
        
        private WebCommsMessage[] listOfWebCommsMessages1Field;
        
        /// <remarks/>
        public System.DateTime ReadTime {
            get {
                return this.readTimeField;
            }
            set {
                this.readTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool ReadTimeSpecified {
            get {
                return this.readTimeFieldSpecified;
            }
            set {
                this.readTimeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public bool IsWriting {
            get {
                return this.isWritingField;
            }
            set {
                this.isWritingField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool IsWritingSpecified {
            get {
                return this.isWritingFieldSpecified;
            }
            set {
                this.isWritingFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime LastAliveTime {
            get {
                return this.lastAliveTimeField;
            }
            set {
                this.lastAliveTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool LastAliveTimeSpecified {
            get {
                return this.lastAliveTimeFieldSpecified;
            }
            set {
                this.lastAliveTimeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlArrayAttribute("ListOfWebCommsMessages")]
        public WebCommsMessage[] ListOfWebCommsMessages1 {
            get {
                return this.listOfWebCommsMessages1Field;
            }
            set {
                this.listOfWebCommsMessages1Field = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34234")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.db.ccmm.applications.nortel.com")]
    public partial class WebCommsMessage {
        
        private long idField;
        
        private bool idFieldSpecified;
        
        private string messageField;
        
        private System.DateTime writeTimeField;
        
        private bool writeTimeFieldSpecified;
        
        private string hiddenMessageField;
        
        private CodeMapping typeField;
        
        /// <remarks/>
        public long ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool IDSpecified {
            get {
                return this.idFieldSpecified;
            }
            set {
                this.idFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public string Message {
            get {
                return this.messageField;
            }
            set {
                this.messageField = value;
            }
        }
        
        /// <remarks/>
        public System.DateTime WriteTime {
            get {
                return this.writeTimeField;
            }
            set {
                this.writeTimeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool WriteTimeSpecified {
            get {
                return this.writeTimeFieldSpecified;
            }
            set {
                this.writeTimeFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public string HiddenMessage {
            get {
                return this.hiddenMessageField;
            }
            set {
                this.hiddenMessageField = value;
            }
        }
        
        /// <remarks/>
        public CodeMapping Type {
            get {
                return this.typeField;
            }
            set {
                this.typeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34234")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.db.ccmm.applications.nortel.com")]
    public partial class CodeMapping {
        
        private long idField;
        
        private bool idFieldSpecified;
        
        private string fieldNameField;
        
        private long numericValueField;
        
        private bool numericValueFieldSpecified;
        
        private string textValueField;
        
        private string iconField;
        
        /// <remarks/>
        public long ID {
            get {
                return this.idField;
            }
            set {
                this.idField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool IDSpecified {
            get {
                return this.idFieldSpecified;
            }
            set {
                this.idFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public string FieldName {
            get {
                return this.fieldNameField;
            }
            set {
                this.fieldNameField = value;
            }
        }
        
        /// <remarks/>
        public long NumericValue {
            get {
                return this.numericValueField;
            }
            set {
                this.numericValueField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool NumericValueSpecified {
            get {
                return this.numericValueFieldSpecified;
            }
            set {
                this.numericValueFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public string TextValue {
            get {
                return this.textValueField;
            }
            set {
                this.textValueField = value;
            }
        }
        
        /// <remarks/>
        public string Icon {
            get {
                return this.iconField;
            }
            set {
                this.iconField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    public delegate void CreateWCSessionCompletedEventHandler(object sender, CreateWCSessionCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class CreateWCSessionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal CreateWCSessionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public long Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((long)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    public delegate void WriteChatMessageCompletedEventHandler(object sender, WriteChatMessageCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class WriteChatMessageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal WriteChatMessageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public long Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((long)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    public delegate void ReadChatMessageCompletedEventHandler(object sender, ReadChatMessageCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class ReadChatMessageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal ReadChatMessageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public ListOfWebCommsMessages Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((ListOfWebCommsMessages)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    public delegate void UpdateAliveTimeCompletedEventHandler(object sender, UpdateAliveTimeCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class UpdateAliveTimeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal UpdateAliveTimeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.DateTime Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.DateTime)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    public delegate void CloseSessionCompletedEventHandler(object sender, CloseSessionCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class CloseSessionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal CloseSessionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public long Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((long)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591