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 conenction, 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: 2018.4.174.677 (2018.4.174.0677)
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
Methods
  NameDescription
Public methodDispose
Releases all resources used by the P4ServerMT
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodgetServer
Create/retreive a P4Server for use in this thread's context
Public methodgetServerForThread
Create/retreive a P4Server for a different thread
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also