Click or drag to resize

P4ServerMT Class

A multithreaded manager for P4Server. A P4Server instance should not be shared between threads; instead, either create a P4Server in each thread where you need a connection, or a create a global P4ServerMT and call P4ServerMT.getThread() from the thread context to get a thread-safe connection to a Perforce server.
Inheritance Hierarchy
SystemObject
  Perforce.P4P4ServerMT

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public class P4ServerMT : IDisposable

The P4ServerMT type exposes the following members.

Constructors
  NameDescription
Public methodP4ServerMT(String)
Create a handler for later creation of P4Server using the provided parameters
Public methodP4ServerMT(String, String, String, String)
Create a handler for later creation of P4Server using the provided parameters
Public methodP4ServerMT(String, String, String, String, String, String, String)
Create a handler for later creation of P4Server using the provided parameters
Top
Properties
Methods
  NameDescription
Public methodDispose
Releases all resources used by the P4ServerMT
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodgetServer
Create/retrieve a P4Server for use in this thread's context
Public methodgetServerForThread
Create/retrieve a P4Server for a different thread
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
See Also