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

namespace WebApplicationUsingWebService.ServiceReference1 {
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServiceReference1.ISampleService")]
    public interface ISampleService {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/GetMatches", ReplyAction="http://tempuri.org/ISampleService/GetMatchesResponse")]
        string[] GetMatches(string hash, string tableName, string[] values, int records);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/GetMatches", ReplyAction="http://tempuri.org/ISampleService/GetMatchesResponse")]
        System.Threading.Tasks.Task<string[]> GetMatchesAsync(string hash, string tableName, string[] values, int records);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/GetMatchingFields", ReplyAction="http://tempuri.org/ISampleService/GetMatchingFieldsResponse")]
        string[] GetMatchingFields(string hash, string tableName);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/GetMatchingFields", ReplyAction="http://tempuri.org/ISampleService/GetMatchingFieldsResponse")]
        System.Threading.Tasks.Task<string[]> GetMatchingFieldsAsync(string hash, string tableName);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/Init", ReplyAction="http://tempuri.org/ISampleService/InitResponse")]
        bool Init(string hash, string tableName, bool useLog, bool doTransformation);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/Init", ReplyAction="http://tempuri.org/ISampleService/InitResponse")]
        System.Threading.Tasks.Task<bool> InitAsync(string hash, string tableName, bool useLog, bool doTransformation);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/IsRunning", ReplyAction="http://tempuri.org/ISampleService/IsRunningResponse")]
        bool IsRunning(string hash, string tableName);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/IsRunning", ReplyAction="http://tempuri.org/ISampleService/IsRunningResponse")]
        System.Threading.Tasks.Task<bool> IsRunningAsync(string hash, string tableName);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/Unload", ReplyAction="http://tempuri.org/ISampleService/UnloadResponse")]
        bool Unload(string hash, string tableName);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/Unload", ReplyAction="http://tempuri.org/ISampleService/UnloadResponse")]
        System.Threading.Tasks.Task<bool> UnloadAsync(string hash, string tableName);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/InsertRecord", ReplyAction="http://tempuri.org/ISampleService/InsertRecordResponse")]
        WebApplicationUsingWebService.ServiceReference1.InsertRecordResponse InsertRecord(WebApplicationUsingWebService.ServiceReference1.InsertRecordRequest request);
        
        // CODEGEN: Generating message contract since the operation has multiple return values.
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/InsertRecord", ReplyAction="http://tempuri.org/ISampleService/InsertRecordResponse")]
        System.Threading.Tasks.Task<WebApplicationUsingWebService.ServiceReference1.InsertRecordResponse> InsertRecordAsync(WebApplicationUsingWebService.ServiceReference1.InsertRecordRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/UpdateRecord", ReplyAction="http://tempuri.org/ISampleService/UpdateRecordResponse")]
        WebApplicationUsingWebService.ServiceReference1.UpdateRecordResponse UpdateRecord(WebApplicationUsingWebService.ServiceReference1.UpdateRecordRequest request);
        
        // CODEGEN: Generating message contract since the operation has multiple return values.
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/UpdateRecord", ReplyAction="http://tempuri.org/ISampleService/UpdateRecordResponse")]
        System.Threading.Tasks.Task<WebApplicationUsingWebService.ServiceReference1.UpdateRecordResponse> UpdateRecordAsync(WebApplicationUsingWebService.ServiceReference1.UpdateRecordRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/DeleteRecord", ReplyAction="http://tempuri.org/ISampleService/DeleteRecordResponse")]
        WebApplicationUsingWebService.ServiceReference1.DeleteRecordResponse DeleteRecord(WebApplicationUsingWebService.ServiceReference1.DeleteRecordRequest request);
        
        // CODEGEN: Generating message contract since the operation has multiple return values.
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/DeleteRecord", ReplyAction="http://tempuri.org/ISampleService/DeleteRecordResponse")]
        System.Threading.Tasks.Task<WebApplicationUsingWebService.ServiceReference1.DeleteRecordResponse> DeleteRecordAsync(WebApplicationUsingWebService.ServiceReference1.DeleteRecordRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/GetCommonName", ReplyAction="http://tempuri.org/ISampleService/GetCommonNameResponse")]
        string GetCommonName(string firstname);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/GetCommonName", ReplyAction="http://tempuri.org/ISampleService/GetCommonNameResponse")]
        System.Threading.Tasks.Task<string> GetCommonNameAsync(string firstname);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/ChangeThresholds", ReplyAction="http://tempuri.org/ISampleService/ChangeThresholdsResponse")]
        WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsResponse ChangeThresholds(WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsRequest request);
        
        // CODEGEN: Generating message contract since the operation has multiple return values.
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISampleService/ChangeThresholds", ReplyAction="http://tempuri.org/ISampleService/ChangeThresholdsResponse")]
        System.Threading.Tasks.Task<WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsResponse> ChangeThresholdsAsync(WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsRequest request);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="InsertRecord", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class InsertRecordRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public string hash;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string tableName;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=2)]
        public string[] fields;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=3)]
        public string[] values;
        
        public InsertRecordRequest() {
        }
        
        public InsertRecordRequest(string hash, string tableName, string[] fields, string[] values) {
            this.hash = hash;
            this.tableName = tableName;
            this.fields = fields;
            this.values = values;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="InsertRecordResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class InsertRecordResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public bool InsertRecordResult;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string[] inserted;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=2)]
        public string error;
        
        public InsertRecordResponse() {
        }
        
        public InsertRecordResponse(bool InsertRecordResult, string[] inserted, string error) {
            this.InsertRecordResult = InsertRecordResult;
            this.inserted = inserted;
            this.error = error;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="UpdateRecord", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class UpdateRecordRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public string hash;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string tableName;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=2)]
        public string[] values;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=3)]
        public string id;
        
        public UpdateRecordRequest() {
        }
        
        public UpdateRecordRequest(string hash, string tableName, string[] values, string id) {
            this.hash = hash;
            this.tableName = tableName;
            this.values = values;
            this.id = id;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="UpdateRecordResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class UpdateRecordResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public bool UpdateRecordResult;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string error;
        
        public UpdateRecordResponse() {
        }
        
        public UpdateRecordResponse(bool UpdateRecordResult, string error) {
            this.UpdateRecordResult = UpdateRecordResult;
            this.error = error;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="DeleteRecord", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class DeleteRecordRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public string hash;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string tableName;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=2)]
        public string id;
        
        public DeleteRecordRequest() {
        }
        
        public DeleteRecordRequest(string hash, string tableName, string id) {
            this.hash = hash;
            this.tableName = tableName;
            this.id = id;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="DeleteRecordResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class DeleteRecordResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public bool DeleteRecordResult;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string error;
        
        public DeleteRecordResponse() {
        }
        
        public DeleteRecordResponse(bool DeleteRecordResult, string error) {
            this.DeleteRecordResult = DeleteRecordResult;
            this.error = error;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="ChangeThresholds", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class ChangeThresholdsRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public string hash;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string tableName;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=2)]
        public int high;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=3)]
        public int low;
        
        public ChangeThresholdsRequest() {
        }
        
        public ChangeThresholdsRequest(string hash, string tableName, int high, int low) {
            this.hash = hash;
            this.tableName = tableName;
            this.high = high;
            this.low = low;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="ChangeThresholdsResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class ChangeThresholdsResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public bool ChangeThresholdsResult;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string error;
        
        public ChangeThresholdsResponse() {
        }
        
        public ChangeThresholdsResponse(bool ChangeThresholdsResult, string error) {
            this.ChangeThresholdsResult = ChangeThresholdsResult;
            this.error = error;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface ISampleServiceChannel : WebApplicationUsingWebService.ServiceReference1.ISampleService, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class SampleServiceClient : System.ServiceModel.ClientBase<WebApplicationUsingWebService.ServiceReference1.ISampleService>, WebApplicationUsingWebService.ServiceReference1.ISampleService {
        
        public SampleServiceClient() {
        }
        
        public SampleServiceClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public SampleServiceClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public SampleServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public SampleServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        public string[] GetMatches(string hash, string tableName, string[] values, int records) {
            return base.Channel.GetMatches(hash, tableName, values, records);
        }
        
        public System.Threading.Tasks.Task<string[]> GetMatchesAsync(string hash, string tableName, string[] values, int records) {
            return base.Channel.GetMatchesAsync(hash, tableName, values, records);
        }
        
        public string[] GetMatchingFields(string hash, string tableName) {
            return base.Channel.GetMatchingFields(hash, tableName);
        }
        
        public System.Threading.Tasks.Task<string[]> GetMatchingFieldsAsync(string hash, string tableName) {
            return base.Channel.GetMatchingFieldsAsync(hash, tableName);
        }
        
        public bool Init(string hash, string tableName, bool useLog, bool doTransformation) {
            return base.Channel.Init(hash, tableName, useLog, doTransformation);
        }
        
        public System.Threading.Tasks.Task<bool> InitAsync(string hash, string tableName, bool useLog, bool doTransformation) {
            return base.Channel.InitAsync(hash, tableName, useLog, doTransformation);
        }
        
        public bool IsRunning(string hash, string tableName) {
            return base.Channel.IsRunning(hash, tableName);
        }
        
        public System.Threading.Tasks.Task<bool> IsRunningAsync(string hash, string tableName) {
            return base.Channel.IsRunningAsync(hash, tableName);
        }
        
        public bool Unload(string hash, string tableName) {
            return base.Channel.Unload(hash, tableName);
        }
        
        public System.Threading.Tasks.Task<bool> UnloadAsync(string hash, string tableName) {
            return base.Channel.UnloadAsync(hash, tableName);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        WebApplicationUsingWebService.ServiceReference1.InsertRecordResponse WebApplicationUsingWebService.ServiceReference1.ISampleService.InsertRecord(WebApplicationUsingWebService.ServiceReference1.InsertRecordRequest request) {
            return base.Channel.InsertRecord(request);
        }
        
        public bool InsertRecord(string hash, string tableName, string[] fields, string[] values, out string[] inserted, out string error) {
            WebApplicationUsingWebService.ServiceReference1.InsertRecordRequest inValue = new WebApplicationUsingWebService.ServiceReference1.InsertRecordRequest();
            inValue.hash = hash;
            inValue.tableName = tableName;
            inValue.fields = fields;
            inValue.values = values;
            WebApplicationUsingWebService.ServiceReference1.InsertRecordResponse retVal = ((WebApplicationUsingWebService.ServiceReference1.ISampleService)(this)).InsertRecord(inValue);
            inserted = retVal.inserted;
            error = retVal.error;
            return retVal.InsertRecordResult;
        }
        
        public System.Threading.Tasks.Task<WebApplicationUsingWebService.ServiceReference1.InsertRecordResponse> InsertRecordAsync(WebApplicationUsingWebService.ServiceReference1.InsertRecordRequest request) {
            return base.Channel.InsertRecordAsync(request);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        WebApplicationUsingWebService.ServiceReference1.UpdateRecordResponse WebApplicationUsingWebService.ServiceReference1.ISampleService.UpdateRecord(WebApplicationUsingWebService.ServiceReference1.UpdateRecordRequest request) {
            return base.Channel.UpdateRecord(request);
        }
        
        public bool UpdateRecord(string hash, string tableName, string[] values, string id, out string error) {
            WebApplicationUsingWebService.ServiceReference1.UpdateRecordRequest inValue = new WebApplicationUsingWebService.ServiceReference1.UpdateRecordRequest();
            inValue.hash = hash;
            inValue.tableName = tableName;
            inValue.values = values;
            inValue.id = id;
            WebApplicationUsingWebService.ServiceReference1.UpdateRecordResponse retVal = ((WebApplicationUsingWebService.ServiceReference1.ISampleService)(this)).UpdateRecord(inValue);
            error = retVal.error;
            return retVal.UpdateRecordResult;
        }
        
        public System.Threading.Tasks.Task<WebApplicationUsingWebService.ServiceReference1.UpdateRecordResponse> UpdateRecordAsync(WebApplicationUsingWebService.ServiceReference1.UpdateRecordRequest request) {
            return base.Channel.UpdateRecordAsync(request);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        WebApplicationUsingWebService.ServiceReference1.DeleteRecordResponse WebApplicationUsingWebService.ServiceReference1.ISampleService.DeleteRecord(WebApplicationUsingWebService.ServiceReference1.DeleteRecordRequest request) {
            return base.Channel.DeleteRecord(request);
        }
        
        public bool DeleteRecord(string hash, string tableName, string id, out string error) {
            WebApplicationUsingWebService.ServiceReference1.DeleteRecordRequest inValue = new WebApplicationUsingWebService.ServiceReference1.DeleteRecordRequest();
            inValue.hash = hash;
            inValue.tableName = tableName;
            inValue.id = id;
            WebApplicationUsingWebService.ServiceReference1.DeleteRecordResponse retVal = ((WebApplicationUsingWebService.ServiceReference1.ISampleService)(this)).DeleteRecord(inValue);
            error = retVal.error;
            return retVal.DeleteRecordResult;
        }
        
        public System.Threading.Tasks.Task<WebApplicationUsingWebService.ServiceReference1.DeleteRecordResponse> DeleteRecordAsync(WebApplicationUsingWebService.ServiceReference1.DeleteRecordRequest request) {
            return base.Channel.DeleteRecordAsync(request);
        }
        
        public string GetCommonName(string firstname) {
            return base.Channel.GetCommonName(firstname);
        }
        
        public System.Threading.Tasks.Task<string> GetCommonNameAsync(string firstname) {
            return base.Channel.GetCommonNameAsync(firstname);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsResponse WebApplicationUsingWebService.ServiceReference1.ISampleService.ChangeThresholds(WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsRequest request) {
            return base.Channel.ChangeThresholds(request);
        }
        
        public bool ChangeThresholds(string hash, string tableName, int high, int low, out string error) {
            WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsRequest inValue = new WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsRequest();
            inValue.hash = hash;
            inValue.tableName = tableName;
            inValue.high = high;
            inValue.low = low;
            WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsResponse retVal = ((WebApplicationUsingWebService.ServiceReference1.ISampleService)(this)).ChangeThresholds(inValue);
            error = retVal.error;
            return retVal.ChangeThresholdsResult;
        }
        
        public System.Threading.Tasks.Task<WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsResponse> ChangeThresholdsAsync(WebApplicationUsingWebService.ServiceReference1.ChangeThresholdsRequest request) {
            return base.Channel.ChangeThresholdsAsync(request);
        }
    }
}
