コード例 #1
0
ファイル: GoldDigger.cs プロジェクト: xoperator/GoKapara
        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);
        }
コード例 #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"
                }
            });
        }
コード例 #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"
            });
        }