WCF Service Problem Only in Production when return larger objects

Posted by Ronnie Overby on Stack Overflow See other posts from Stack Overflow or by Ronnie Overby
Published on 2011-02-21T14:43:43Z Indexed on 2011/02/21 15:25 UTC
Read the original article Hit count: 235

Filed under:
|
|
|

First, here's my service contract:

[ServiceContract]
public interface IUpdateService
{
    [OperationContract]
    IEnumerable<SoftwareUpdate> GetUpdates(string version);

    [OperationContract]
    bool AreUpdatesAvailable(string version);
}

And here's SoftwareUpdate:

[DataContract]
public class SoftwareUpdate
{
    [DataMember]
    public Version Version { get; set; }

    [DataMember]
    public byte[] UpdateArchive { get; set; }
}

The problem I am having is that, in production, as the UpdateArchive property begins to contain more data.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET