public GridSPSTest(ClusterFixture fixture) { _client = fixture.Client; var builder = new GridSpatialPubSubBuilder(); builder.Configure(config => { config.PartitionSize = 0.2d; }); _pubSub = builder.Build(_client).GetAwaiter().GetResult(); }
public static async Task Main(string[] args) { var client = await StartClientWithRetries(); var builder = new GridSpatialPubSubBuilder(); builder.Configure(config => { config.PartitionSize = 0.2d; }); var pubSub = builder.Build(client).GetAwaiter().GetResult(); var spatialGrain = client.GetGrain <ISimpleGrain>(0); await spatialGrain.SetPosition(new Vector3d(1d, 1d, 0d)); await pubSub.Insert(spatialGrain); await spatialGrain.SubscribeToSimpleEvent(); Console.WriteLine("All done!"); }