1:  public class Document
   2:  {
   3:      public int DocumentId { get; set; }
   4:      public WorkflowType Workflow { get; set; }
   5:      public StateType State { get; set; }
   6:   
   7:      private Lazy<IFluentStateEngine<WorkflowType, StateType, TriggerType, TriggerContext>> _stateEngine;
   8:   
   9:      public Document( Func<WorkflowType, StateType, IFluentStateEngine<WorkflowType, StateType, TriggerType, TriggerContext>>> stateEngine)
  10:      {
  11:          _stateEngine = new Lazy<IFluentStateEngine<WorkflowType, StateType, TriggerType, TriggerContext>( stateEngine(Workflow, State));            
  12:      }
  13:  }

Last edited Jan 2, 2011 at 6:11 AM by sdhebert, version 1

Comments

No comments yet.