/// <remarks/> public void RegisterAsync(Session Session, object userState) { if ((this.RegisterOperationCompleted == null)) { this.RegisterOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRegisterOperationCompleted); } this.InvokeAsync("Register", new object[] { Session}, this.RegisterOperationCompleted, userState); }
public string Register(Session Session) { object[] results = this.Invoke("Register", new object[] { Session}); return ((string)(results[0])); }
/// <remarks/> public void RegisterAsync(Session Session) { this.RegisterAsync(Session, null); }
string GetSession(SmsConfiguration smsConf) { string returnValue = string.Empty; Session ses = new Session(); ses.AccountNumber = smsConf.AccountNumber; ses.UserName = smsConf.UserName; ses.Password = smsConf.Password; string session = mService.Register(ses); returnValue = session; return returnValue; }