Updated WCF for SWS-225

This commit is contained in:
Arjen Poutsma
2007-11-22 16:01:05 +00:00
parent ecc8f3173e
commit 8cd769f9b9
3 changed files with 8 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.42
// Runtime Version:2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -162,6 +162,7 @@ namespace Spring.Ws.Samples.Mtom.Client.Wcf
{
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
void Spring.Ws.Samples.Mtom.Client.Wcf.ImageRepository.StoreImage(Spring.Ws.Samples.Mtom.Client.Wcf.StoreImageRequest request)
{
base.Channel.StoreImage(request);
@@ -174,6 +175,7 @@ namespace Spring.Ws.Samples.Mtom.Client.Wcf
((Spring.Ws.Samples.Mtom.Client.Wcf.ImageRepository)(this)).StoreImage(inValue);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
Spring.Ws.Samples.Mtom.Client.Wcf.LoadImageResponse Spring.Ws.Samples.Mtom.Client.Wcf.ImageRepository.LoadImage(Spring.Ws.Samples.Mtom.Client.Wcf.LoadImageRequest request)
{
return base.Channel.LoadImage(request);

View File

@@ -25,6 +25,11 @@ namespace Spring.Ws.Samples.Mtom.Client.Wcf {
wcfClient.StoreImage(image);
TimeSpan interval = DateTime.Now - start;
Console.WriteLine("StoreImage took: {0,4:N0} ms.", interval.TotalMilliseconds);
start = DateTime.Now;
image = wcfClient.LoadImage(file.Name);
interval = DateTime.Now - start;
Console.WriteLine("LoadImage took: {0,4:N0} ms.", interval.TotalMilliseconds);
wcfClient.Close();