Class ServerTypeExtensions
Represents extension methods on ServerType.
public static class ServerTypeExtensions- Inheritance
- 
      
      ServerTypeExtensions
- Inherited Members
Methods
IsReplicaSetMember(ServerType)
Determines whether this server type is a replica set member.
public static bool IsReplicaSetMember(this ServerType serverType)Parameters
- serverTypeServerType
- The type of the server. 
Returns
- bool
- Whether this server type is a replica set member. 
IsWritable(ServerType)
Determines whether this server type is a writable server.
public static bool IsWritable(this ServerType serverType)Parameters
- serverTypeServerType
- The type of the server. 
Returns
- bool
- Whether this server type is a writable server. 
ToClusterType(ServerType)
Infers the cluster type from the server type.
public static ClusterType ToClusterType(this ServerType serverType)Parameters
- serverTypeServerType
- The type of the server. 
Returns
- ClusterType
- The cluster type.