PipelineContext
public class PipelineContext : Sequence
extension PipelineContext: Equatable
Undocumented
-
Create a
PipelineContextfrom a simple dictionary of key-value pairs.Declaration
Swift
public static func of(keyValues: [AnyHashable : AnyObject]) -> PipelineContextParameters
keyValuesDictionaryof key-value pairs. Value must be cast toAnyObject.Return Value
PipelineContextrepresenting the provided dictionary. -
Create an empty
PipelineContext.Declaration
Swift
public init()
-
Adds a value to the
PipelineContext.Declaration
Swift
public func add(value: AnyObject, forKey key: AnyHashable)Parameters
valueObject to be added, as
AnyObject.keyString key with which to store the object.
-
Adds a value to the
PipelineContext.Declaration
Swift
public func add(value: AnyObject, forKey key: ContextKey)Parameters
valueObject to be added, as
AnyObject.keyContextKeywith which to store the object. -
Retrieves a keyed value from the
PipelineContext.Declaration
Swift
public func value(forKey key: AnyHashable) -> AnyObject?Parameters
keyRaw string key to retrieve.
Return Value
Value for the given property key, if found, as
AnyObject. -
Retrieves a keyed value from the
PipelineContext.Declaration
Swift
public func value(forKey key: ContextKey) -> AnyObject?Parameters
keyContextKeyto retrieve.Return Value
Value for the given property key, if found, as
AnyObject. -
Convert the
PipelineContextlinked list into a simple dictionary.Declaration
Swift
public func toDict() -> [AnyHashable : AnyObject?]Return Value
Dictionaryrepresentation of thePipelineContext. -
Add a
CancellationTokenwhile applying smart defaulting logic. If the client transport options specify a timeout, this will be used to automatically createCancellationTokens for each call, even when a token is not specified. If the client call options contain aCancellationTokenwith no timeout the default timeout will be applied, if specified inClientOptions.Declaration
Swift
public func add(cancellationToken: CancellationToken?, applying clientOptions: ClientOptions)Parameters
cancellationTokenOptional
CancellationTokenobject.clientOptionsClientOptionsfor the client generating the request. -
Undocumented
Declaration
Swift
public func merge(with newContext: PipelineContext?)
-
Declaration
Swift
public typealias Iterator = PipelineContextIterator -
Declaration
Swift
public func makeIterator() -> PipelineContextIterator -
Undocumented
See moreDeclaration
Swift
public class PipelineContextIterator : IteratorProtocol
-
Declaration
Swift
public static func == (lhs: PipelineContext, rhs: PipelineContext) -> Bool
View on GitHub
PipelineContext Class Reference