/// <summary> /// Initialize the grain client. This should be already done by <see cref="Deploy()"/> or <see cref="DeployAsync"/> /// </summary> public void InitializeClient() { WriteLog("Initializing Cluster Client"); this.InternalClient = (IInternalClusterClient)TestClusterHostFactory.CreateClusterClient("MainClient", this.ConfigurationSources); this.InternalClient.Connect().GetAwaiter().GetResult(); }
/// <summary> /// Initialize the grain client. This should be already done by <see cref="Deploy()"/> or <see cref="DeployAsync"/> /// </summary> public void InitializeClient() { WriteLog("Initializing Cluster Client"); this.InternalClient = (IInternalClusterClient)TestClusterHostFactory.CreateClusterClient("MainClient", this.ConfigurationSources); this.InternalClient.Connect().GetAwaiter().GetResult(); this.SerializationManager = this.ServiceProvider.GetRequiredService <SerializationManager>(); }
/// <summary> /// Initialize the grain client. This should be already done by <see cref="Deploy()"/> or <see cref="DeployAsync"/> /// </summary> public async Task InitializeClientAsync() { WriteLog("Initializing Cluster Client"); if (ClientHost is not null) { await StopClusterClientAsync(); } this.ClientHost = TestClusterHostFactory.CreateClusterClient("MainClient", this.ConfigurationSources); await this.ClientHost.StartAsync(); }