Esempio n. 1
0
        public AppBase(FuSettings settings, IEnumerable<IService> services, FuAction pipeline)
        {
            services = services ?? new IService[] { };
              settings = settings ?? new FuSettings();

              pipeline = pipeline ?? fu.EndAct;

              this.Services = services.ToList();
              this.Settings = settings;

              this.Pipeline = pipeline;
        }
Esempio n. 2
0
 public static Continuation Action(FuAction act)
 {
     return step => ctx => { act(ctx); step(ctx); };
 }
Esempio n. 3
0
 public static FSAction ToFSharp(FuAction act)
 {
     return FuncConvert.ToFSharpFunc<IFuContext>(c_ => act(c_));
 }