/// <summary> /// This function will use for giving Node/SuperNode to Connection string,authtype etc. /// </summary> /// <param name="uName"></param> /// <param name="objPeerInformation"></param> /// <returns></returns> VMukti.Business.WCFServices.BootStrapServices.DataContracts.clsBootStrapInfo BootstrapServiceDomain_EntHttpBSJoin(string uName, clsPeerInfo objPeerInformation) { try { clsBootStrapInfo objBootStrapInfo = new clsBootStrapInfo(); objBootStrapInfo.AuthServerIP = VMuktiInfo.CurrentPeer.AuthServerIP; objBootStrapInfo.AuthType = VMuktiAPI.VMuktiInfo.CurrentPeer.CurrAuthType.ToString(); objBootStrapInfo.ConnectionString = EncodeBase64(VMuktiAPI.VMuktiInfo.MainConnectionString); return objBootStrapInfo; } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "BootStrapServiceDomain_EntHttpBSJoin()", "Domains\\BootstrapServiceDomain.cs"); return null; } }
public string[] IsAuthorizedUser(clsBootStrapInfo objBootStrapInfo, string strUserName, string strPassword) { if (EntIsAutherizedUser != null) { return EntIsAutherizedUser(objBootStrapInfo, strUserName, strPassword); } else { return null; } }