示例#1
0
        private static IPandaContainer CreateAndRegisterContainerWithCredentials(string baseUrl, string userName, string password)
        {
            var container = new PandaContainer();

            container.RegisterPandaModules(() => AuthenticateWithCredentials(container, baseUrl, userName, password));

            return(container);
        }
示例#2
0
        private static IPandaContainer CreateAndRegisterContainerWithOAuth(
            string baseUrl,
            string consumerKey,
            string consumerSecret,
            string oAuthAccessToken,
            string oAuthTokenSecret)
        {
            var container = new PandaContainer();

            container.RegisterPandaModules(() => AuthenticateWithOAuth(container, baseUrl, consumerKey, consumerSecret, oAuthAccessToken, oAuthTokenSecret));

            return(container);
        }