protected virtual string GetConsumerKey(SocialNetworkServiceRequest request) { string consumerKey; if (UseSharedApplication) { ConsumerInfo consumerInfo = GetConsumerInfoRemotely(request); consumerKey = consumerInfo.Key; } else { consumerKey = GetSysSettingValue <string>(ConsumerKeySysSettingName); } if (consumerKey.IsNullOrEmpty()) { throw new MissingConsumerKeyException(); } return(consumerKey); }
/// <summary> /// ######### ####### ########## # ########## ## ####### #######. /// </summary> /// <param name="request">######, ######## ######### #########.</param> /// <returns>########## # ########## ## ####### #######.</returns> public virtual void CheckConsumerInfo(SocialNetworkServiceRequest request) { ConsumerInfo consumerInfo = GetConsumerInfo(request); }