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)); } }
public Agent(Recomposable <ConnectionArgument> arguments) : base(arguments) { }
public ChatHubAgent(Recomposable <ConnectionArgument> arguments) : base(arguments) { RandomUsers = new List <string>(); }
public GeneratorManager(Recomposable<ILogger> logger, ValidatorDelegate<IGenerator> generatorValidator) { _recompLogger = logger; _generatorValidator = generatorValidator; }