Example #1
0
        public Daemon(int taskLimit, Action <TReturn> callback)
        {
            ResolverCache = new ResolverCache();
            FlowCache     = new FlowCache(ResolverCache);
            FlowTaskQueue = new SimplePriorityQueue <FlowTask, int>();
            ActiveFlows   = new Dictionary <Guid, IFlow>();
            Callback      = callback;

            if (taskLimit < 2)
            {
                taskLimit = 2;
            }
            TaskLimit = taskLimit;
        }
Example #2
0
 public void Initialize(Guid key, ResolverCache resolver)
 {
     _Initialize(key, resolver);
     Initialized = true;
 }
Example #3
0
 protected abstract void _Initialize(Guid key, ResolverCache resolver);
Example #4
0
 public FlowCache(ResolverCache resolverCache)
 {
     _ResolverCache = resolverCache;
 }