Пример #1
0
 internal static S3RequestEventArgs Create(S3Request request, AmazonS3Config config)
 {
     S3RequestEventArgs args = new S3RequestEventArgs
     {
         OriginalRequest = request,
         Headers = request.Headers,
         ServiceURL = config.ServiceURL
     };
     return args;
 }
Пример #2
0
 NameValueCollection GetHeaders(S3Request request)
 {
     var propertyInfo = typeof(S3Request).GetProperty("Headers", BindingFlags.NonPublic | BindingFlags.Instance);
     return (NameValueCollection)propertyInfo.GetValue(request, null);
 }