Type.registerNamespace('Xtensive.HelpServer.Web');
Xtensive.HelpServer.Web.IndexProvider=function() {
Xtensive.HelpServer.Web.IndexProvider.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Xtensive.HelpServer.Web.IndexProvider.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Xtensive.HelpServer.Web.IndexProvider._staticInstance.get_path();},
Load:function(title,indexPosition,succeededCallback, failedCallback, userContext) {
/// <param name="title" type="String">System.String</param>
/// <param name="indexPosition" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Load',false,{title:title,indexPosition:indexPosition},succeededCallback,failedCallback,userContext); }}
Xtensive.HelpServer.Web.IndexProvider.registerClass('Xtensive.HelpServer.Web.IndexProvider',Sys.Net.WebServiceProxy);
Xtensive.HelpServer.Web.IndexProvider._staticInstance = new Xtensive.HelpServer.Web.IndexProvider();
Xtensive.HelpServer.Web.IndexProvider.set_path = function(value) {
Xtensive.HelpServer.Web.IndexProvider._staticInstance.set_path(value); }
Xtensive.HelpServer.Web.IndexProvider.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Xtensive.HelpServer.Web.IndexProvider._staticInstance.get_path();}
Xtensive.HelpServer.Web.IndexProvider.set_timeout = function(value) {
Xtensive.HelpServer.Web.IndexProvider._staticInstance.set_timeout(value); }
Xtensive.HelpServer.Web.IndexProvider.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Xtensive.HelpServer.Web.IndexProvider._staticInstance.get_timeout(); }
Xtensive.HelpServer.Web.IndexProvider.set_defaultUserContext = function(value) { 
Xtensive.HelpServer.Web.IndexProvider._staticInstance.set_defaultUserContext(value); }
Xtensive.HelpServer.Web.IndexProvider.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Xtensive.HelpServer.Web.IndexProvider._staticInstance.get_defaultUserContext(); }
Xtensive.HelpServer.Web.IndexProvider.set_defaultSucceededCallback = function(value) { 
 Xtensive.HelpServer.Web.IndexProvider._staticInstance.set_defaultSucceededCallback(value); }
Xtensive.HelpServer.Web.IndexProvider.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Xtensive.HelpServer.Web.IndexProvider._staticInstance.get_defaultSucceededCallback(); }
Xtensive.HelpServer.Web.IndexProvider.set_defaultFailedCallback = function(value) { 
Xtensive.HelpServer.Web.IndexProvider._staticInstance.set_defaultFailedCallback(value); }
Xtensive.HelpServer.Web.IndexProvider.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Xtensive.HelpServer.Web.IndexProvider._staticInstance.get_defaultFailedCallback(); }
Xtensive.HelpServer.Web.IndexProvider.set_path("/WebServices/IndexProvider.asmx");
Xtensive.HelpServer.Web.IndexProvider.Load= function(title,indexPosition,onSuccess,onFailed,userContext) {
/// <param name="title" type="String">System.String</param>
/// <param name="indexPosition" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Xtensive.HelpServer.Web.IndexProvider._staticInstance.Load(title,indexPosition,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Xtensive.HelpServer.Web.IndexRequestResult) === 'undefined') {
Xtensive.HelpServer.Web.IndexRequestResult=gtc("Xtensive.HelpServer.Web.IndexRequestResult");
Xtensive.HelpServer.Web.IndexRequestResult.registerClass('Xtensive.HelpServer.Web.IndexRequestResult');
}

