예제 #1
0
 /// <summary>Create the consumer using a custom DataStore.</summary>
 public OAuth2InfoConsumer(IOAuth2DataStore DataStore)
 {
     _dataStore = DataStore;
     info       = dataStore.LoadInfo();
     if (info == null)
     {
         info = new OAuth2Info();
         dataStore.SaveInfo(info);
     }
 }
예제 #2
0
        public OAuth2InfoConsumer()
        {
            if (settings.SerializeType == gShellSettings.SerializeTypes.Json)
            {
                _dataStore = new OAuth2JsonDataStore(dataStoreLocation);
            }
            else
            {
                _dataStore = new OAuth2BinDataStore(dataStoreLocation);
            }

            info = dataStore.LoadInfo();
            if (info == null)
            {
                info = new OAuth2Info();
                dataStore.SaveInfo(info);
            }
        }
예제 #3
0
 public OAuth2Controller(IOAuth2DataStore oAuth2DataStore)
 {
     this.oAuth2DataStore = oAuth2DataStore;
 }