public MetadataServicesClient(SimplTypesScope metadatascope, SemanticsSessionScope semanticSessionScope, ParsedUri serviceUri, bool useWebSockets = false) { SimplTypesScope[] oodssAndMetadataScope = {metadatascope, DefaultServicesTranslations.Get()}; _metadataTypeScope = SimplTypesScope.Get("MetadataServicesTranslationScope", oodssAndMetadataScope, typeof (MetadataRequest), typeof (MetadataResponse), typeof (SemanticServiceError) ); _serviceBaseUri = serviceUri; if (useWebSockets) { _metadataClient = new WebSocketOODSSClient("127.0.0.1", 2018, _metadataTypeScope, semanticSessionScope); _metadataClient.StartAsync(); } }
internal DocumentClosure(SemanticsSessionScope semanticsSessionScope, Document document) { SemanticsSessionScope = semanticsSessionScope; Document = document; }
public DocumentClosureConnectionHelper(SemanticsSessionScope semanticsSessionScope, Document originalDocument, DocumentClosure documentClosure) { this.semanticsSessionScope = semanticsSessionScope; this.originalDocument = originalDocument; this.documentClosure = documentClosure; }
public void InheritValues(Document oldDocument) { oldDocument.SemanticsSessionScope.GlobalDocumentCollection.Remap(oldDocument, this); if (Location == null) { Location = oldDocument.Location; oldDocument.Location = null; } this.SemanticsSessionScope = oldDocument.SemanticsSessionScope; // TODO semantic inlinks List<Metadata> oldMixins = oldDocument.Mixins; if (oldMixins != null) foreach (Metadata oldMixin in oldMixins) AddMixin(oldMixin); List<MetadataParsedURL> oldAdditionalLocations = oldDocument.AdditionalLocations; if (oldAdditionalLocations != null) foreach (MetadataParsedURL otherLocation in oldAdditionalLocations) AddAdditionalLocation(otherLocation); }
public void FillValues(SemanticsSessionScope semanticsSessionScope, PURLConnection purlConnection, MetaMetadataCompositeField metaMetadata, DocumentClosure documentClosure) { SemanticsSessionScope = semanticsSessionScope; PURLConnection = purlConnection; MetaMetadata = metaMetadata; DocumentClosure = documentClosure; }
public MetadataDeserializationHookStrategy(SemanticsSessionScope semanticsSessionScope) { _semanticsSessionScope = semanticsSessionScope; }