public ClientManager(IOTAwareContext context, string name) { Name = name; Id = Guid.NewGuid(); Clients = new List <ClientMetaData>(); AddDocument(context); }
public void SetContent(IOTAwareContext ctx, object value) { var context = ctx as MultiCaretTextEditor; var content = value as string; context.Clear(); context.InsertText(content, 0); }
protected override void Execute(Operation o, IOTAwareContext operationContext) { foreach (var manager in ManagerChain) { if (manager.TryExecute(operationContext, o)) { return; } } }
protected override void Transform(Operation o, IOTAwareContext operationContext) { Operation copy = (Operation)o.Clone(); lock (syncRoot) { outgoing.Select(x => { o = transformer.Transform(x, o); return(transformer.Transform(copy, x)); }); } }
protected override void Execute(Operation o, IOTAwareContext operationContext) { foreach (var manager in ManagerChain) { if (manager.TryExecute(operationContext, o)) { o.ExecutedAt = DateTime.Now; o.ServerMessages = this.serverMessages; operationContext.Log.Add(o); if (OperationPerformed != null) { OperationPerformed(this, o); } } } }
public ClientManager(IOTAwareContext context) : this(context, "") { }
public object GetContent(IOTAwareContext ctx) { var context = ctx as MultiCaretTextEditor; return(context.Editor.Text); }
protected override void Transform(Operation o, IOTAwareContext operationContext) { throw new NotImplementedException(); }
protected abstract void Execute(Operation o, IOTAwareContext operationContext);
protected abstract void Transform(Operation o, IOTAwareContext operationContext);
public void AddDocument(IOTAwareContext document) { Documents[document.DocumentName] = document; }