private static IClusterClient BuildOrleansClient(System.Uri fabricName) { IClientBuilder clientBuilder = new ClientBuilder(); clientBuilder.UseConfiguration(new ClientConfiguration()); clientBuilder.AddServiceFabric(fabricName); clientBuilder.ConfigureServices(collection => { // Add in Custom Services here }); return(clientBuilder.Build()); }