/// <summary> /// Initializes a new instance of the HttpResourceEntityProvider class. /// </summary> /// <param name="appKey">The app secret key for accessing API.</param> /// <param name="host">The host URI.</param> /// <param name="relativePath">The relative path.</param> public HttpResourceEntityProvider(AppAccessingKey appKey, Uri host, string relativePath) { CoreResources = new HttpResourceAccessClient(appKey, host); RelativePath = relativePath; }
/// <summary> /// Initializes a new instance of the HttpResourceAccessContext class. /// </summary> /// <param name="client">The resource access client.</param> public HttpResourceAccessContext(HttpResourceAccessClient client) { CoreResources = client ?? new HttpResourceAccessClient(null, null); FillProviderProperties(); }
/// <summary> /// Initializes a new instance of the HttpResourceEntityProvider class. /// </summary> /// <param name="client">The resource access client.</param> /// <param name="relativePath">The relative path.</param> public HttpResourceEntityProvider(HttpResourceAccessClient client, string relativePath) { CoreResources = client ?? new HttpResourceAccessClient(null, null); RelativePath = relativePath; }