예제 #1
0
        protected AgentBase(Recomposable <ConnectionArgument> arguments)
        {
            worker = new Worker(arguments.Value)
            {
                OnLogMessage = OnLogMessageReceived,
                OnConnectionStatusChanged = OnConnectionStatusChangedReceived
            };

            RegisteredMethodsInternal = new ConcurrentDictionary <string, Func <string, Task <object[]> > >();

            var methods = PreRegisterMethods();

            if (methods != null)
            {
                methods.ForEach(m => RegisteredMethodsInternal.TryAdd(m.Item1, m.Item2));
            }
        }
예제 #2
0
 public Agent(Recomposable <ConnectionArgument> arguments) : base(arguments)
 {
 }
예제 #3
0
 public ChatHubAgent(Recomposable <ConnectionArgument> arguments) : base(arguments)
 {
     RandomUsers = new List <string>();
 }
예제 #4
0
 public GeneratorManager(Recomposable<ILogger> logger, ValidatorDelegate<IGenerator> generatorValidator)
 {
     _recompLogger = logger;
     _generatorValidator = generatorValidator;
 }