Exemplo n.º 1
0
        protected override void OnStart(string[] args)
        {
            initLog();
            Log("Serwis uruchomiony");

            PocoUserData ud = new PocoUserData(){ EmailAddress = AccessSettings.MailAddress
                                                , Password = AccessSettings.MailPswd };

            if (string.IsNullOrEmpty(AccessSettings.MailAddress))
            {
                Log("Dane dostępowe do konta są niedostępne");
                throw new InvalidDataException("nie ma adresu");
            }

            service = Service.ConnectToService(ud , new TraceListener());

            SetStreamingNotifications(service,ud);
        }
Exemplo n.º 2
0
        protected override void OnStart(string[] args)
        {
            initLog();
            Log("Serwis uruchomiony");

            PocoUserData ud = new PocoUserData()
            {
                EmailAddress = AccessSettings.MailAddress
                , Password   = AccessSettings.MailPswd
            };

            if (string.IsNullOrEmpty(AccessSettings.MailAddress))
            {
                Log("Dane dostępowe do konta są niedostępne");
                throw new InvalidDataException("nie ma adresu");
            }

            service = Service.ConnectToService(ud, new TraceListener());

            SetStreamingNotifications(service, ud);
        }