diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-11 20:54:04 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-01-11 20:54:04 -0800 |
commit | 4c4a483aeb0b085ff47a819172eda92a1625addb (patch) | |
tree | 8639cc40c8b2e73e93349c17c572973bcf2fc57f /samples | |
parent | 5875d13984a4deca8ef06d33294d6f2e16b3f589 (diff) | |
download | DotNetOpenAuth-4c4a483aeb0b085ff47a819172eda92a1625addb.zip DotNetOpenAuth-4c4a483aeb0b085ff47a819172eda92a1625addb.tar.gz DotNetOpenAuth-4c4a483aeb0b085ff47a819172eda92a1625addb.tar.bz2 |
Fixes StyleCop issues.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/DotNetOpenAuth.ApplicationBlock/TwitterConsumer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/DotNetOpenAuth.ApplicationBlock/TwitterConsumer.cs b/samples/DotNetOpenAuth.ApplicationBlock/TwitterConsumer.cs index ba7fbfb..ecb7d6c 100644 --- a/samples/DotNetOpenAuth.ApplicationBlock/TwitterConsumer.cs +++ b/samples/DotNetOpenAuth.ApplicationBlock/TwitterConsumer.cs @@ -44,7 +44,7 @@ namespace DotNetOpenAuth.ApplicationBlock { private static readonly MessageReceivingEndpoint UpdateProfileImageEndpoint = new MessageReceivingEndpoint("http://twitter.com/account/update_profile_image.xml", HttpDeliveryMethods.PostRequest | HttpDeliveryMethods.AuthorizationHeaderRequest); /// <summary> - /// Initializes the <see cref="TwitterConsumer"/> class. + /// Initializes static members of the <see cref="TwitterConsumer"/> class. /// </summary> static TwitterConsumer() { // Twitter can't handle the Expect 100 Continue HTTP header. @@ -64,7 +64,7 @@ namespace DotNetOpenAuth.ApplicationBlock { public static XDocument UpdateProfileBackgroundImage(ConsumerBase twitter, string accessToken, string image, bool tile) { HttpWebRequest request = twitter.PrepareAuthorizedRequest(UpdateProfileBackgroundImageEndpoint, accessToken); request.ServicePoint.Expect100Continue = false; - var parts = new [] { + var parts = new[] { MultipartPostPart.CreateFormFilePart("image", image, "image/" + Path.GetExtension(image).Substring(1).ToLowerInvariant()), MultipartPostPart.CreateFormPart("tile", tile.ToString().ToLowerInvariant()), }; |