一款简单易用的基础网络通讯组件库。

ActionMap 类

服务映射图

Definition

命名空间: TouchSocket.Rpc
程序集: TouchSocket.Rpc (在 TouchSocket.Rpc.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public sealed class ActionMap : Dictionary<string, RpcMethod>
Inheritance
Object    DictionaryString, RpcMethod    ActionMap

构造函数

ActionMap 服务映射图

属性

CapacityGets the total numbers of elements the internal data structure can hold without resizing.
(继承自 DictionaryString, RpcMethod。)
ComparerGets the IEqualityComparerT that is used to determine equality of keys for the dictionary.
(继承自 DictionaryString, RpcMethod。)
CountGets the number of key/value pairs contained in the DictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)
ItemGets or sets the value associated with the specified key.
(继承自 DictionaryString, RpcMethod。)
KeysGets a collection containing the keys in the DictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)
ValuesGets a collection containing the values in the DictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)

方法

AddAdds the specified key and value to the dictionary.
(继承自 DictionaryString, RpcMethod。)
ClearRemoves all keys and values from the DictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)
ContainsKeyDetermines whether the DictionaryTKey, TValue contains the specified key.
(继承自 DictionaryString, RpcMethod。)
ContainsValueDetermines whether the DictionaryTKey, TValue contains a specific value.
(继承自 DictionaryString, RpcMethod。)
EnsureCapacityEnsures that the dictionary can hold up to a specified number of entries without any further expansion of its backing storage.
(继承自 DictionaryString, RpcMethod。)
EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
GetAlternateLookup``1Gets an instance of a type that can be used to perform operations on the current DictionaryTKey, TValue using a TAlternateKey as a key instead of a TKey.
(继承自 DictionaryString, RpcMethod。)
GetEnumeratorReturns an enumerator that iterates through the DictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetRpcMethod 通过actionKey获取函数实例
GetTypeGets the Type of the current instance.
(继承自 Object。)
OnDeserializationImplements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(继承自 DictionaryString, RpcMethod。)
Remove(TKey)Removes the value with the specified key from the DictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)
Remove(TKey, TValue)Removes the value with the specified key from the DictionaryTKey, TValue, and copies the element to the value parameter.
(继承自 DictionaryString, RpcMethod。)
ToStringReturns a string that represents the current object.
(继承自 Object。)
TrimExcessSets the capacity of this dictionary to what it would be if it had been originally initialized with all its entries.
(继承自 DictionaryString, RpcMethod。)
TrimExcess(Int32)Sets the capacity of this dictionary to hold up a specified number of entries without any further expansion of its backing storage.
(继承自 DictionaryString, RpcMethod。)
TryAddAttempts to add the specified key and value to the dictionary.
(继承自 DictionaryString, RpcMethod。)
TryGetAlternateLookup``1Gets an instance of a type that can be used to perform operations on the current DictionaryTKey, TValue using a TAlternateKey as a key instead of a TKey.
(继承自 DictionaryString, RpcMethod。)
TryGetRpcMethod 通过actionKey获取函数实例
TryGetValueGets the value associated with the specified key.
(继承自 DictionaryString, RpcMethod。)

扩展方法

Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

显式接口实现

ICollectionKeyValuePairTKey, TValueAddAdds the specified value to the ICollectionT with the specified key.
(继承自 DictionaryString, RpcMethod。)
IDictionaryAddAdds the specified key and value to the dictionary.
(继承自 DictionaryString, RpcMethod。)
ICollectionKeyValuePairTKey, TValueContainsDetermines whether the ICollectionT contains a specific key and value.
(继承自 DictionaryString, RpcMethod。)
IDictionaryContainsDetermines whether the IDictionary contains an element with the specified key.
(继承自 DictionaryString, RpcMethod。)
ICollectionKeyValuePairTKey, TValueCopyToCopies the elements of the ICollectionT to an array of type KeyValuePairTKey, TValue, starting at the specified array index.
(继承自 DictionaryString, RpcMethod。)
ICollectionCopyToCopies the elements of the ICollectionT to an array, starting at the specified array index.
(继承自 DictionaryString, RpcMethod。)
IEnumerableKeyValuePairTKey, TValueGetEnumeratorReturns an enumerator that iterates through the collection.
(继承自 DictionaryString, RpcMethod。)
IDictionaryGetEnumeratorReturns an IDictionaryEnumerator for the IDictionary.
(继承自 DictionaryString, RpcMethod。)
IEnumerableGetEnumeratorReturns an enumerator that iterates through the collection.
(继承自 DictionaryString, RpcMethod。)
IDictionaryIsFixedSizeGets a value that indicates whether the IDictionary has a fixed size.
(继承自 DictionaryString, RpcMethod。)
ICollectionKeyValuePairTKey, TValueIsReadOnlyGets a value that indicates whether the dictionary is read-only.
(继承自 DictionaryString, RpcMethod。)
IDictionaryIsReadOnlyGets a value that indicates whether the IDictionary is read-only.
(继承自 DictionaryString, RpcMethod。)
ICollectionIsSynchronizedGets a value that indicates whether access to the ICollection is synchronized (thread safe).
(继承自 DictionaryString, RpcMethod。)
IDictionaryItemGets or sets the value with the specified key.
(继承自 DictionaryString, RpcMethod。)
IDictionaryTKey, TValueKeysGets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)
IReadOnlyDictionaryTKey, TValueKeysGets a collection containing the keys of the IReadOnlyDictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)
IDictionaryKeysGets an ICollection containing the keys of the IDictionary.
(继承自 DictionaryString, RpcMethod。)
ICollectionKeyValuePairTKey, TValueRemoveRemoves a key and value from the dictionary.
(继承自 DictionaryString, RpcMethod。)
IDictionaryRemoveRemoves the element with the specified key from the IDictionary.
(继承自 DictionaryString, RpcMethod。)
ICollectionSyncRootGets an object that can be used to synchronize access to the ICollection.
(继承自 DictionaryString, RpcMethod。)
IDictionaryTKey, TValueValuesGets an ICollectionT containing the values in the IDictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)
IReadOnlyDictionaryTKey, TValueValuesGets a collection containing the values of the IReadOnlyDictionaryTKey, TValue.
(继承自 DictionaryString, RpcMethod。)
IDictionaryValuesGets an ICollection containing the values in the IDictionary.
(继承自 DictionaryString, RpcMethod。)

参见