public EloquentCalculator(ICalculator calculator, IEloquentServer server) { _calculator = calculator; _objectHost = server.Add <IEloquentCalculator>("calculator", this); _clientHost = new EloquentOperationsHistory(calculator.OperationsHistory, server); }
public ChildObject(IEloquentServer server, string objectId, string name) { _host = server.Add <IChildContract>(objectId, this); Name = name; }
public ParentObject(IEloquentServer server, string objectId, IChildContract child) { _child = child; _host = server.Add <IContract>(objectId, this); }
public EloquentOperationsHistory(IOperationsHistory operationsHistory, IEloquentServer server) { _operationsHistory = operationsHistory; ObjectHost = server.Add <IEloquentOperationsHistory>("calculator/history", this); }