Sdílet prostřednictvím


Transmission.Split(Func<Int32,Int32>) Method

Definition

Splits the Transmission object into two pieces using a method to determine the length of the first piece based off of the length of the transmission.

public virtual Tuple<Microsoft.ApplicationInsights.Channel.Transmission,Microsoft.ApplicationInsights.Channel.Transmission> Split (Func<int,int> calculateLength);
abstract member Split : Func<int, int> -> Microsoft.ApplicationInsights.Channel.Transmission * Microsoft.ApplicationInsights.Channel.Transmission
override this.Split : Func<int, int> -> Microsoft.ApplicationInsights.Channel.Transmission * Microsoft.ApplicationInsights.Channel.Transmission
Public Overridable Function Split (calculateLength As Func(Of Integer, Integer)) As Tuple(Of Transmission, Transmission)

Parameters

calculateLength
Func<Int32,Int32>

Returns

A tuple with the first item being a Transmission object with n ITelemetry objects and the second item being a Transmission object with the remaining ITelemetry objects.

Applies to