Skip to content

Commit

Permalink
Added [Serializable] for .NET 4 and 4.5, to help with WCF. (This attr…
Browse files Browse the repository at this point in the history
…ibute does not exist in Standard)

 - Bumped to 2.8.2-alpha
  • Loading branch information
Brian committed Mar 28, 2017
1 parent cc691fb commit 2057a5c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Outcomes.Tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"System.Runtime.Serialization.Primitives": "4.1.1",
"xunit": "2.1.0",
"dotnet-test-xunit": "1.0.0-rc2-build10015",
"Outcomes": "2.8.0-*"
"Ether.Outcomes": "2.8.0-*"
},
"testRunner": "xunit",
"frameworks": {
Expand Down
3 changes: 3 additions & 0 deletions Outcomes/Builder/FailureOutcomeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ namespace Ether.Outcomes.Builder
/// <summary>
/// Uses the builder pattern to create a fluent interface for failure scenarios.
/// </summary>
#if NET45 || NET40
[Serializable]
#endif
public class FailureOutcomeBuilder<TValue> : SuccessOutcomeBuilder<TValue>, IFailureOutcomeBuilder<TValue>
{
internal FailureOutcomeBuilder(bool success) : base(success)
Expand Down
3 changes: 3 additions & 0 deletions Outcomes/Builder/SuccessOutcomeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ namespace Ether.Outcomes.Builder
/// <summary>
/// Uses the builder pattern to create a fluent interface for success scenarios.
/// </summary>
#if NET45 || NET40
[Serializable]
#endif
public class SuccessOutcomeBuilder<TValue> : OutcomeResult<TValue>
{
internal SuccessOutcomeBuilder(bool success) : base(success)
Expand Down
3 changes: 3 additions & 0 deletions Outcomes/OutcomeResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ namespace Ether.Outcomes
/// OutcomeResults are generated by calling Outcomes.Success() or Outcomes.Failure()
/// </summary>
/// <typeparam name="TValue">The type that this OutcomeResult wraps.</typeparam>
#if NET45 || NET40
[Serializable]
#endif
public class OutcomeResult<TValue> : IOutcome<TValue>
{
public bool Success { get; protected set; }
Expand Down
2 changes: 1 addition & 1 deletion Outcomes/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Ether.Outcomes",
"description": "Outcome.NET uses generics and a fluent interface to add metadata to your return value. It's a very expressive, clean result wrapper.",
"copyright": "2017",
"version": "2.8.1-alpha",
"version": "2.8.2-alpha",

"packOptions": {
"summary": "Never write a result wrapper again! Outcome.NET is a simple, powerful helper for methods that need to return a value, but sometimes also need to provide metadata such as error messages.",
Expand Down

0 comments on commit 2057a5c

Please sign in to comment.