public static SimplTypesScope Get() { SimplTypesScope semanticActionScope = SemanticOperationTranslationScope.Get(); SimplTypesScope conditionScope = SimplTypesScope.Get("condition_scope", conditionClasses); SimplTypesScope nestedFieldTypes = NestedMetaMetadataFieldTypesScope.Get(); SimplTypesScope mmdScope = SimplTypesScope.Get("meta_metadata", MetaMetadataFieldTranslationScope.Get(), translations); mmdScope.AddTranslations(semanticActionScope); mmdScope.AddTranslations(conditionScope); mmdScope.AddTranslations(nestedFieldTypes); return(mmdScope); }
public OODSSClient(String host, int port, SimplTypesScope simplTypesScope, Scope <object> objectRegistry) { _sendMesssageThread = new Thread(SendMessageWorker); _receiveMesssageThread = new Thread(ReceiveMessageWorker); _pendingRequests = new ConcurrentDictionary <int, QueueObject>(); _requestQueue = new BlockingCollection <QueueObject>(new ConcurrentQueue <QueueObject>()); Host = host; Port = port; ObjectRegistry = objectRegistry; //Add the OODSS messages to the scope. simplTypesScope.AddTranslations(ServicesTranslationScope); SimplTypesScope = simplTypesScope; var initState = new InitConnectionRequest(); int uid = _uid; QueueObject q = new QueueObject(initState, uid, null); _requestQueue.Add(q); }