RemoteAgents .NET WindowsPhone registering event just once!!!
authorGustavo Martin <gu.martinm@gmail.com>
Sun, 23 Feb 2014 21:11:55 +0000 (22:11 +0100)
committerGustavo Martin <gu.martinm@gmail.com>
Sun, 23 Feb 2014 21:11:55 +0000 (22:11 +0100)
.gitignore
WindowsPhone/RemoteAgents/RemoteAgents/MainPage.xaml
WindowsPhone/RemoteAgents/RemoteAgents/Model/CallRemoteProcedure.cs

index 1524171..339f6eb 100644 (file)
@@ -124,7 +124,7 @@ publish/
 
 # NuGet Packages Directory
 ## TODO: If you have NuGet Package Restore enabled, uncomment the next line
-packages/*
+packages/
 ## TODO: If the tool you use requires repositories.config, also uncomment the next line
 !packages/repositories.config
 
index e0d53d1..4db3b90 100644 (file)
@@ -48,7 +48,7 @@
         <!--ContentPanel. Colocar aquĆ­ el contenido adicional-->
         <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
             <TextBox x:Name="CurrentDateTextBox" HorizontalAlignment="Left" Height="72" Margin="0,57,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="456" IsReadOnly="True" InputScope="Date"/>
-            <Button x:Name="ButtonRetrieveRemoteData" Content="{Binding LocalizedResources.ButtonRetrieveRemoteData, Mode=OneWay, Source={StaticResource LocalizedStrings}}" HorizontalAlignment="Left" Margin="289,479,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.915,0.432" Click="ButtonRetrieveRemoteData_Click"/>
+            <Button x:Name="ButtonRetrieveRemoteData" Content="{Binding LocalizedResources.ButtonRetrieveRemoteData, Mode=OneWay, Source={StaticResource LocalizedStrings}}" HorizontalAlignment="Left" Margin="289,479,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.915,0.432"/>
 
         </Grid>
 
index b63e5c3..1179d86 100644 (file)
@@ -19,8 +19,6 @@ namespace RemoteAgents.WindowsPhone.Model
             string data = JsonConvert.SerializeObject(postData);
             HttpContent content = new StringContent(data, System.Text.Encoding.UTF8, "application/json-rpc");
 
-            // TODO: find out why HttpClient is sendig two times the same POST. Is there something wrong with the .NET implementation?
-            // At least it is doing that, when error response from web server.
             HttpResponseMessage response = await this.doCall(uri, content);
 
             TResult result = default(TResult);