About the Native Client C# .NET API

About the Native Client C# .NET API

The Microsoft .NET Framework interface for the Pivotal GemFire native client provides complete access to the native client C++ functionality from any .NET Framework language (C#, C++/CLI, VB.NET, and J#). This enables clients using C# and other .NET languages to use the capabilities provided by the GemFire C++ API.

The GemFire native client uses a set of assemblies managed by the C++ Common Language Infrastructure (C++ CLI). C++ CLI includes the libraries and objects necessary for common language types, and it is the framework for .NET applications.

The .NET API for the native client adds .NET Framework CLI language binding for the GemFire native client product.

Using C#, you can write callbacks and define user objects in the cache. The following figure shows an overview of how a C# application accesses the native client C++ API functionality through C++/CLI .

Figure 1. C# .NET Application Accessing the C++ API

Note: This chapter uses C# as the reference language, but other .NET languages work the same way.

The GemFire C# .NET API is provided in the GemStone::GemFire::Cache::Generic namespace. This namespace allows you to manage your cache, regions, and data using the .NET Generics APIs.

Use the GemFire C# .NET API to programmatically create, populate, and manage a GemFire distributed system.

Note: The C# .NET library is thread-safe except where otherwise indicated in the online API documentation.

For complete and current information on the GemFire APIs, see the online .NET API documentation. For general information on .NET, see the Microsoft developer’s network website.