コード例 #1
0
        public SdkConfigurationFactory(IApiConfiguration apiConfiguration,
                                       ISdkLibraryConfiguration sdkLibraryConfiguration, IOAuthTokenHandler tokenHandler)
        {
            _tokenHandler = tokenHandler;

            var defaultHeader = new Dictionary <string, string>
            {
                {
                    "Content-Type", "application/json"
                }
            };

            var sdkGenerationBasePath = sdkLibraryConfiguration.Path;
            var owinServerUrl         = apiConfiguration.Url;

            object[] args =
            {
                defaultHeader, new Dictionary <string, string>(), new Dictionary <string, string>(), owinServerUrl
            };

            _configType = GetTypeFromAssembly(sdkGenerationBasePath, EdFiConstants.SdkConfigurationNamespace);

            var configInstance = Activator.CreateInstance(_configType, args);

            SdkConfig = configInstance;
        }
コード例 #2
0
 public GetByExampleTest(
     Resource resource,
     Dictionary <string, JArray> resultsDictionary,
     IApiConfiguration configuration,
     IOAuthTokenHandler tokenHandler)
     : base(resource, resultsDictionary, configuration, tokenHandler)
 {
 }
コード例 #3
0
 protected GetBaseTest(
     Resource resource,
     Dictionary <string, JArray> resultsDictionary,
     IApiConfiguration configuration,
     IOAuthTokenHandler tokenHandler)
 {
     Resource          = resource;
     ResultsDictionary = resultsDictionary;
     Configuration     = configuration;
     TokenHandler      = tokenHandler;
 }
コード例 #4
0
 public GetSessionTokenGenerator(IOAuthTokenHandler tokenHandler, IOAuthSessionToken sessionToken)
 {
     _tokenHandler = tokenHandler;
     _sessionToken = sessionToken;
 }