Go C#

Test provider

The esiest way to run clustered Proto.Actor setup during developemnt on local machine (without using real clustering) is to use Test Cluster Provider.

This might be used together with other provider, e.g. in dev environment use test provider otherwise use production one. Example might be found in Realtime map example.

Provider is available in Proto.Cluster.TestProvider nuget package.


static (GrpcCoreRemoteConfig, IClusterProvider) ConfigureForLocalhost() 
        => (
            GrpcCoreRemoteConfig.BindToLocalhost(),  
            new TestProvider(new TestProviderOptions(), new InMemAgent())
        );

Topics
Icon