public SchemaInstance Clone() { var i = new SchemaInstance(); foreach (var si in this) { i.Add(si.Key, si.Value.Clone()); } return(i); }
public void Initialize(WebSocket socket, IEnumerable <SchemaInstance> schema) { if (schema == null || !schema.Any()) { throw new ArgumentNullException(nameof(schema)); } WebSocket = socket; Schema = schema.ToList(); Previous = null; Current = Schema.FirstOrDefault(); Last = Schema.LastOrDefault(); Start(); }
internal SchemaNavigator(SchemaInstance p, Logger logger) { this.p = p; this.logger = logger; }
public SchemaEditor(SchemaInstance schemaInstance, long ticks) { this.schemaInstance = schemaInstance; this.ticks = ticks; }