//------------------------------------------------------------------------------ // // Ce code a été généré par un outil. // Version du runtime :4.0.30319.42000 // // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si // le code est régénéré. // //------------------------------------------------------------------------------ // // Ce code source a été automatiquement généré par Microsoft.VSDesigner, Version 4.0.30319.42000. // #pragma warning disable 1591 namespace CD67.FicheCollege.Entity.WsAgents { using System; using System.Web.Services; using System.Diagnostics; using System.Web.Services.Protocols; using System.Xml.Serialization; using System.ComponentModel; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="WsAgentsSoap", Namespace="http://tempuri.org/")] public partial class WsAgents : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback GetByIdOperationCompleted; private System.Threading.SendOrPostCallback GetByIdsOperationCompleted; private System.Threading.SendOrPostCallback GetByOperationCompleted; private System.Threading.SendOrPostCallback GetAllOperationCompleted; private System.Threading.SendOrPostCallback GetAllSortedOperationCompleted; private System.Threading.SendOrPostCallback GetManyByOperationCompleted; private System.Threading.SendOrPostCallback GetManyBySortedOperationCompleted; private bool useDefaultCredentialsSetExplicitly; /// public WsAgents() { this.Url = global::CD67.FicheCollege.Entity.Properties.Settings.Default.CD67_FicheCollege_Entity_WsAgents_WsAgents; 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; } } /// public event GetByIdCompletedEventHandler GetByIdCompleted; /// public event GetByIdsCompletedEventHandler GetByIdsCompleted; /// public event GetByCompletedEventHandler GetByCompleted; /// public event GetAllCompletedEventHandler GetAllCompleted; /// public event GetAllSortedCompletedEventHandler GetAllSortedCompleted; /// public event GetManyByCompletedEventHandler GetManyByCompleted; /// public event GetManyBySortedCompletedEventHandler GetManyBySortedCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetById", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public Agent GetById(string Key) { object[] results = this.Invoke("GetById", new object[] { Key}); return ((Agent)(results[0])); } /// public void GetByIdAsync(string Key) { this.GetByIdAsync(Key, null); } /// public void GetByIdAsync(string Key, object userState) { if ((this.GetByIdOperationCompleted == null)) { this.GetByIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetByIdOperationCompleted); } this.InvokeAsync("GetById", new object[] { Key}, this.GetByIdOperationCompleted, userState); } private void OnGetByIdOperationCompleted(object arg) { if ((this.GetByIdCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetByIdCompleted(this, new GetByIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetByIds", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public Agent[] GetByIds(string[] Keys) { object[] results = this.Invoke("GetByIds", new object[] { Keys}); return ((Agent[])(results[0])); } /// public void GetByIdsAsync(string[] Keys) { this.GetByIdsAsync(Keys, null); } /// public void GetByIdsAsync(string[] Keys, object userState) { if ((this.GetByIdsOperationCompleted == null)) { this.GetByIdsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetByIdsOperationCompleted); } this.InvokeAsync("GetByIds", new object[] { Keys}, this.GetByIdsOperationCompleted, userState); } private void OnGetByIdsOperationCompleted(object arg) { if ((this.GetByIdsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetByIdsCompleted(this, new GetByIdsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetBy", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public Agent GetBy(string FilterExpression) { object[] results = this.Invoke("GetBy", new object[] { FilterExpression}); return ((Agent)(results[0])); } /// public void GetByAsync(string FilterExpression) { this.GetByAsync(FilterExpression, null); } /// public void GetByAsync(string FilterExpression, object userState) { if ((this.GetByOperationCompleted == null)) { this.GetByOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetByOperationCompleted); } this.InvokeAsync("GetBy", new object[] { FilterExpression}, this.GetByOperationCompleted, userState); } private void OnGetByOperationCompleted(object arg) { if ((this.GetByCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetByCompleted(this, new GetByCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAll", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public Agent[] GetAll() { object[] results = this.Invoke("GetAll", new object[0]); return ((Agent[])(results[0])); } /// public void GetAllAsync() { this.GetAllAsync(null); } /// public void GetAllAsync(object userState) { if ((this.GetAllOperationCompleted == null)) { this.GetAllOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllOperationCompleted); } this.InvokeAsync("GetAll", new object[0], this.GetAllOperationCompleted, userState); } private void OnGetAllOperationCompleted(object arg) { if ((this.GetAllCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetAllCompleted(this, new GetAllCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAllSorted", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public Agent[] GetAllSorted(string SortField, bool SortAscendant) { object[] results = this.Invoke("GetAllSorted", new object[] { SortField, SortAscendant}); return ((Agent[])(results[0])); } /// public void GetAllSortedAsync(string SortField, bool SortAscendant) { this.GetAllSortedAsync(SortField, SortAscendant, null); } /// public void GetAllSortedAsync(string SortField, bool SortAscendant, object userState) { if ((this.GetAllSortedOperationCompleted == null)) { this.GetAllSortedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllSortedOperationCompleted); } this.InvokeAsync("GetAllSorted", new object[] { SortField, SortAscendant}, this.GetAllSortedOperationCompleted, userState); } private void OnGetAllSortedOperationCompleted(object arg) { if ((this.GetAllSortedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetAllSortedCompleted(this, new GetAllSortedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetManyBy", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public Agent[] GetManyBy(string FilterExpression) { object[] results = this.Invoke("GetManyBy", new object[] { FilterExpression}); return ((Agent[])(results[0])); } /// public void GetManyByAsync(string FilterExpression) { this.GetManyByAsync(FilterExpression, null); } /// public void GetManyByAsync(string FilterExpression, object userState) { if ((this.GetManyByOperationCompleted == null)) { this.GetManyByOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetManyByOperationCompleted); } this.InvokeAsync("GetManyBy", new object[] { FilterExpression}, this.GetManyByOperationCompleted, userState); } private void OnGetManyByOperationCompleted(object arg) { if ((this.GetManyByCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetManyByCompleted(this, new GetManyByCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetManyBySorted", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public Agent[] GetManyBySorted(string FilterExpression, string SortField, bool SortAscendant) { object[] results = this.Invoke("GetManyBySorted", new object[] { FilterExpression, SortField, SortAscendant}); return ((Agent[])(results[0])); } /// public void GetManyBySortedAsync(string FilterExpression, string SortField, bool SortAscendant) { this.GetManyBySortedAsync(FilterExpression, SortField, SortAscendant, null); } /// public void GetManyBySortedAsync(string FilterExpression, string SortField, bool SortAscendant, object userState) { if ((this.GetManyBySortedOperationCompleted == null)) { this.GetManyBySortedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetManyBySortedOperationCompleted); } this.InvokeAsync("GetManyBySorted", new object[] { FilterExpression, SortField, SortAscendant}, this.GetManyBySortedOperationCompleted, userState); } private void OnGetManyBySortedOperationCompleted(object arg) { if ((this.GetManyBySortedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetManyBySortedCompleted(this, new GetManyBySortedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// 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; } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")] public partial class Agent { private string idField; private string loginField; private string nomField; private string prenomField; private string mailField; private string telephoneField; private System.Nullable expirationField; private AgentType typeIndividuField; private string organisationField; private System.Nullable gUIDField; private byte[] sIDField; private string sIDasTextField; private string cheminField; private System.Nullable actifField; private System.Nullable disparitionField; private string employeeIDField; /// public string Id { get { return this.idField; } set { this.idField = value; } } /// public string Login { get { return this.loginField; } set { this.loginField = value; } } /// public string Nom { get { return this.nomField; } set { this.nomField = value; } } /// public string Prenom { get { return this.prenomField; } set { this.prenomField = value; } } /// public string Mail { get { return this.mailField; } set { this.mailField = value; } } /// public string Telephone { get { return this.telephoneField; } set { this.telephoneField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public System.Nullable Expiration { get { return this.expirationField; } set { this.expirationField = value; } } /// public AgentType TypeIndividu { get { return this.typeIndividuField; } set { this.typeIndividuField = value; } } /// public string Organisation { get { return this.organisationField; } set { this.organisationField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public System.Nullable GUID { get { return this.gUIDField; } set { this.gUIDField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] public byte[] SID { get { return this.sIDField; } set { this.sIDField = value; } } /// public string SIDasText { get { return this.sIDasTextField; } set { this.sIDasTextField = value; } } /// public string Chemin { get { return this.cheminField; } set { this.cheminField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public System.Nullable Actif { get { return this.actifField; } set { this.actifField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] public System.Nullable Disparition { get { return this.disparitionField; } set { this.disparitionField = value; } } /// public string EmployeeID { get { return this.employeeIDField; } set { this.employeeIDField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")] [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")] public enum AgentType { /// Agent, /// PartenaireProche, /// Externe, } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] public delegate void GetByIdCompletedEventHandler(object sender, GetByIdCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetByIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetByIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public Agent Result { get { this.RaiseExceptionIfNecessary(); return ((Agent)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] public delegate void GetByIdsCompletedEventHandler(object sender, GetByIdsCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetByIdsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetByIdsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public Agent[] Result { get { this.RaiseExceptionIfNecessary(); return ((Agent[])(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] public delegate void GetByCompletedEventHandler(object sender, GetByCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetByCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetByCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public Agent Result { get { this.RaiseExceptionIfNecessary(); return ((Agent)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] public delegate void GetAllCompletedEventHandler(object sender, GetAllCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetAllCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetAllCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public Agent[] Result { get { this.RaiseExceptionIfNecessary(); return ((Agent[])(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] public delegate void GetAllSortedCompletedEventHandler(object sender, GetAllSortedCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetAllSortedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetAllSortedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public Agent[] Result { get { this.RaiseExceptionIfNecessary(); return ((Agent[])(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] public delegate void GetManyByCompletedEventHandler(object sender, GetManyByCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetManyByCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetManyByCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public Agent[] Result { get { this.RaiseExceptionIfNecessary(); return ((Agent[])(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] public delegate void GetManyBySortedCompletedEventHandler(object sender, GetManyBySortedCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetManyBySortedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetManyBySortedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public Agent[] Result { get { this.RaiseExceptionIfNecessary(); return ((Agent[])(this.results[0])); } } } } #pragma warning restore 1591