Type.registerNamespace('Iventa.AsynchornousCalls');
Iventa.AsynchornousCalls.AsyncService=function() {
Iventa.AsynchornousCalls.AsyncService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Iventa.AsynchornousCalls.AsyncService.prototype={
CheckAccount:function(AccountName,succeededCallback, failedCallback, userContext) {
return this._invoke(Iventa.AsynchornousCalls.AsyncService.get_path(), 'CheckAccount',false,{AccountName:AccountName},succeededCallback,failedCallback,userContext); },
CheckDomain:function(DomainName,succeededCallback, failedCallback, userContext) {
return this._invoke(Iventa.AsynchornousCalls.AsyncService.get_path(), 'CheckDomain',false,{DomainName:DomainName},succeededCallback,failedCallback,userContext); }}
Iventa.AsynchornousCalls.AsyncService.registerClass('Iventa.AsynchornousCalls.AsyncService',Sys.Net.WebServiceProxy);
Iventa.AsynchornousCalls.AsyncService._staticInstance = new Iventa.AsynchornousCalls.AsyncService();
Iventa.AsynchornousCalls.AsyncService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Iventa.AsynchornousCalls.AsyncService._staticInstance._path = value; }
Iventa.AsynchornousCalls.AsyncService.get_path = function() { return Iventa.AsynchornousCalls.AsyncService._staticInstance._path; }
Iventa.AsynchornousCalls.AsyncService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
Iventa.AsynchornousCalls.AsyncService._staticInstance._timeout = value; }
Iventa.AsynchornousCalls.AsyncService.get_timeout = function() { 
return Iventa.AsynchornousCalls.AsyncService._staticInstance._timeout; }
Iventa.AsynchornousCalls.AsyncService.set_defaultUserContext = function(value) { 
Iventa.AsynchornousCalls.AsyncService._staticInstance._userContext = value; }
Iventa.AsynchornousCalls.AsyncService.get_defaultUserContext = function() { 
return Iventa.AsynchornousCalls.AsyncService._staticInstance._userContext; }
Iventa.AsynchornousCalls.AsyncService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Iventa.AsynchornousCalls.AsyncService._staticInstance._succeeded = value; }
Iventa.AsynchornousCalls.AsyncService.get_defaultSucceededCallback = function() { 
return Iventa.AsynchornousCalls.AsyncService._staticInstance._succeeded; }
Iventa.AsynchornousCalls.AsyncService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Iventa.AsynchornousCalls.AsyncService._staticInstance._failed = value; }
Iventa.AsynchornousCalls.AsyncService.get_defaultFailedCallback = function() { 
return Iventa.AsynchornousCalls.AsyncService._staticInstance._failed; }
Iventa.AsynchornousCalls.AsyncService.set_path("/AsyncService.asmx");
Iventa.AsynchornousCalls.AsyncService.CheckAccount= function(AccountName,onSuccess,onFailed,userContext) {Iventa.AsynchornousCalls.AsyncService._staticInstance.CheckAccount(AccountName,onSuccess,onFailed,userContext); }
Iventa.AsynchornousCalls.AsyncService.CheckDomain= function(DomainName,onSuccess,onFailed,userContext) {Iventa.AsynchornousCalls.AsyncService._staticInstance.CheckDomain(DomainName,onSuccess,onFailed,userContext); }
