예제 #1
0
 public AnSmppClient(string hostName, int port, IAnBind anBind)
 {
     this.hostName = hostName;
     this.port     = port;
     this.anBind   = anBind;
     client        = new SmppClient();
 }
 public static Bind NewBind(this IAnBind bind)
 {
     return(new Bind
     {
         SystemId = bind.SystemId,
         Password = bind.Password
     });
 }
예제 #3
0
        protected virtual void OnDispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                anBind = null;
                client.Dispose();
            }
            disposed = true;
        }
예제 #4
0
 public ConcreteClient(IAnBind bind)
     : base("1.1.100.10", 2775, bind)
 {
 }