예제 #1
0
        public SchemaInstance Clone()
        {
            var i = new SchemaInstance();

            foreach (var si in this)
            {
                i.Add(si.Key, si.Value.Clone());
            }
            return(i);
        }
예제 #2
0
        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();
        }
예제 #3
0
 internal SchemaNavigator(SchemaInstance p, Logger logger)
 {
     this.p      = p;
     this.logger = logger;
 }
예제 #4
0
 public SchemaEditor(SchemaInstance schemaInstance, long ticks)
 {
     this.schemaInstance = schemaInstance;
     this.ticks          = ticks;
 }