| 
            
              BrokerRouterExtensionsLatestOffset Method
             | 
          
        
        
            Gets the latest offset for a Topic partition.
            
        
        Namespace: KafkaAdaptersAssembly: KafkaAdapters (in KafkaAdapters.dll) Version: 2.4.258-beta
Syntaxpublic static long LatestOffset(
	this BrokerRouter router,
	string topic,
	int partitionID = 0
)
[<ExtensionAttribute>]
static member LatestOffset : 
        router : BrokerRouter * 
        topic : string * 
        ?partitionID : int 
(* Defaults:
        let _partitionID = defaultArg partitionID 0
*)
-> int64 KafkaAdapters.BrokerRouterExtensions.LatestOffset = function(router, topic, partitionID);
 View SourceParameters
- router  BrokerRouter
 - Router used to derive latest offset.
 - topic  String
 - Topic to determine latest offset for.
 - partitionID  Int32  (Optional)
 - Topic partition to determine latest offset for.
 
Return Value
Int64The latest offset for a partition in a topic.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
BrokerRouter. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
See Also