/// <summary> /// <para> /// Instantiates a ServicePartionResolver, invoking the first delegate to get the <see cref="System.Fabric.FabricClient">FabricClient.</see>. /// During partition resolution if FabricClient object gets disposed and second delegate is provided, /// it uses the second delegate to get the FabricClient again. The second delegate provides a way to specify /// an alternate way to get or create FabricClient if FabricClient created with first delegate get disposed. /// </para> /// </summary> /// <param name="createFabricClient">Delegate to create the fabric client.</param> /// <param name="recreateFabricClient">Delegate to re-create the fabric client.</param> public ServicePartitionResolver( CreateFabricClientDelegate createFabricClient, CreateFabricClientDelegate recreateFabricClient) { this.createFabricClient = createFabricClient; this.recreateFabricClient = recreateFabricClient ?? createFabricClient; }
/// <summary> /// Instantiates a ServicePartitionResolver, invoking the given delegate to instantiate FabricClient. /// </summary> /// <param name="createFabricClient">Delegate to create fabric client.</param> public ServicePartitionResolver( CreateFabricClientDelegate createFabricClient) : this(createFabricClient, null) { }