Пример #1
0
        private static ISmppConfiguration GetSmppConfiguration()
        {
#if NET40
            var reader = new AppSettingsReader();
            return(reader.Read <SmppConfiguration>());
#else
            return(new SmppConfiguration()
            {
                SystemID = "smppclient1",
                Password = "******",
                Host = "localhost",
                Port = 5016,
                SystemType = "5750",
                DefaultServiceType = "5750",
                SourceAddress = "5750",
                Encoding = DataCoding.UCS2,
                AddressNpi = NumberingPlanIndicator.Unknown,
                AddressTon = TypeOfNumber.Alphanumeric,
                UserMessageReferenceType = UserMessageReferenceType.None,
                RegisterDeliveryNotification = true,
                UseSeparateConnections = true
            });
#endif
        }
Пример #2
0
        private static ISmppConfiguration GetSmppConfiguration()
        {
            var reader = new AppSettingsReader();

            return(reader.Read <SmppConfiguration>());
        }