예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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();
 }
예제 #3
0
 /// <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;
 }