# GlobalServer class

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class GlobalServer
```

Maintains a collection of global data sources within a document.

## Constructors

- [GlobalServer](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.globalserver/ctor.md): Create a new global object repository.

## Properties

- [Document](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.globalserver/document.md): Gets the document associated with this global server.
- [Shouts](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.globalserver/shouts.md): Iterate over all [Shout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.shout.md) objects in the document associated with this server. This property duplicates the internal collection so it can be used in a thread-safe way. That is to say, changes made to the collection *while iterating* will not be reflected in this enumerable.

## Methods

- [CreateResolver](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.globalserver/createresolver.md): Create an undeclared resolver for expressions based on globals in the current document and parent documents.
- [FindReferences](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.globalserver/findreferences.md): Find all references to a specific shout object.
- [FindShouts](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.globalserver/findshouts.md): Gets all [Shout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.shout.md) objects associated with the given search. There may be zero or more shouts which match the name, either because they simply have identical names, or because the search contains wildcards.
- [IsMatch](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.globalserver/ismatch.md): (static) Test whether a [Shout](https://developer.rhino3d.com/api/gh2/type/grasshopper2.parameters.special.shout.md) matches a search term. The search term may just be a string which will be matched against the shout UserName. The search term may contain * and ? wildcards which will be matched against the shout UserName. The search term may be a Guid in string form which will be matched against the shout InstanceId.
- [Resolve](https://developer.rhino3d.com/api/gh2/type/grasshopper2.doc.globalserver/resolve.md): Attempt to resolve the actual data stored in a global parameter. If the parameter is unsolved, a solution will be attempted. This method has potentially high overhead, but results are cached during solutions. If no match can be found in this document, the parent document (if any) will be searched, and so on up the document parent chain.
