This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Linq.Expressions; | |
| namespace Foundation.Specifications | |
| { | |
| /// <summary> | |
| /// Defines an abstract class from which to create conditional specifications. | |
| /// </summary> | |
| /// <typeparam name="T">The type of entity used in the specification.</typeparam> | |
| /// <seealso href="http://ubik.com.au/article/named/implementing_the_specification_pattern_with_linq" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Linq.Expressions; | |
| namespace Foundation.Specifications | |
| { | |
| /// <summary> | |
| /// Defines a factory for creating specifications inline. | |
| /// </summary> | |
| public static class SpecificationFactory | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace Foundation.Collections | |
| { | |
| /// <summary> | |
| /// Adds extension methods to the IEnumerable{T} interface. | |
| /// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Foundation | |
| { | |
| /// <summary> | |
| /// Static extensions for creating tuples. | |
| /// </summary> | |
| public static class Tuple | |
| { | |
| #region methods | |
| /// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Windows.Controls; | |
| using Foundation.Client.PresentationModels; | |
| namespace Foundation.Client.Views | |
| { | |
| /// <summary> | |
| /// Common interface from which all UI views should inherit. | |
| /// </summary> | |
| /// <remarks> | |
| /// In general, all views will inherit from UserControl, which has uses |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.ComponentModel; | |
| using System.Windows.Input; | |
| using Foundation.Client.Views; | |
| namespace Foundation.Client.PresentationModels | |
| { | |
| /// <summary> | |
| /// Common interface for all presentation layer models. | |
| /// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace RxPingPong | |
| { | |
| /// <summary>Simple Ping Pong Actor model using Rx</summary> | |
| /// <remarks> | |
| /// You'll need to install the Reactive Extensions (Rx) for this to work. | |
| /// You can get the installer from <see href="http://msdn.microsoft.com/en-us/devlabs/ee794896.aspx"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace CallCC | |
| { | |
| /// <summary>An attempt to understand Call/CC in Rx</summary> | |
| class Program | |
| { | |
| static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace Fusion.Foundation.Specifications | |
| { | |
| /// <summary> | |
| /// Adds extensions to allow composing predicates. | |
| /// </summary> | |
| public static class CompositePredicate | |
| { | |
| #region methods |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using MvcContrib; | |
| using Stateless; | |
| namespace StatelessResfulie | |
| { | |
| public class Order | |
| { | |
| public enum Trigger { Self, Retrieve, Receipt, Cancel, Pay, Update } | |
| public enum State { IsReady, Delivered, Unpaid, Cancelled, Paid } |