Exemplo n.º 1
0
        public GoldDigger(NetworkInterface networkInterface, string requestQueuePath, string responseQueuePath)
        {
            ThreadPool.SetMinThreads(100, 100);

            _networkAdapter = new NetworkAdapter(networkInterface);

            _requestQueuePath = requestQueuePath;
            _responseQueuePath = responseQueuePath;

            _mqBll = new MQBLL();
            _mqBll.NewMessageAvailable += new NewMessageEventHandler(_mqBll_NewMessageAvailable);
        }
Exemplo n.º 2
0
        public void PostOnWall(long toFacebookId, string message, string pictureUrl, string linkUrl, string linkName, string caption, string userAccessToken)
        {
            string appRequestUrl = string.Format(APP_WALL_POST, toFacebookId, userAccessToken, message, pictureUrl, linkUrl, linkName, caption);

            var mqBll = new MQBLL();

            mqBll.EnqueueMessage(GOKAPARA_REQUEST_QUEUE, "FacebookAppWallPost", new MQMessageInfo()
            {
                Url = appRequestUrl,
                ParseDedication = "None",
                HttpMethodType = "POST",
                Parameters = new List<string>()
                {
                    "1",
                    "1"
                }
            });
        }
Exemplo n.º 3
0
        public void SendFacebookAppNotification(long toFacebookId, string message, string data, string appAccessToken)
        {
            string appRequestUrl = string.Format(APP_REQUEST_URL_PATTERN, toFacebookId, message, data, appAccessToken);

            var mqBll = new MQBLL();

            mqBll.EnqueueMessage(GOKAPARA_REQUEST_QUEUE, "FacebookAppNotification", new MQMessageInfo()
            {
                Url = appRequestUrl,
                ParseDedication = "None"
            });
        }