Beispiel #1
0
        public ScrollController()
        {
            var callback        = new OutlookServiceCallback();
            var instanceContext = new InstanceContext(callback);

            _client = new OutlookServiceClient(instanceContext);
            try
            {
                _client.Connect("test");
            }
            catch (Exception)
            {
                // ignored
            }
        }
        public AppointmentController()
        {
            var callback = new OutlookServiceCallback();

            callback.NewCallBack += ExecuteCallBack;
            var instanceContext = new InstanceContext(callback);

            _client = new OutlookServiceClient(instanceContext);
            try
            {
                _client.Connect(HttpContext.Current.Request.UserHostAddress);
                ip = HttpContext.Current.Request.UserHostAddress;
            }
            catch (Exception)
            {
                // ignored
            }
        }