예제 #1
0
        // Token: 0x0600022F RID: 559 RVA: 0x0000A210 File Offset: 0x00008410
        public MyType GetCommonROProperty <MyType>(string key)
        {
            MyType result = default(MyType);

            try
            {
                using (AmClusterRawData resourceControlData = this.GetResourceControlData(AmClusterResourceControlCode.CLUSCTL_RESOURCE_GET_RO_COMMON_PROPERTIES))
                {
                    AmClusterPropList amClusterPropList = new AmClusterPropList(resourceControlData.Buffer, resourceControlData.Size);
                    result = amClusterPropList.Read <MyType>(key);
                }
            }
            catch (ClusterApiException arg)
            {
                AmClusterResource.Tracer.TraceDebug <string, string, ClusterApiException>((long)this.GetHashCode(), "GetCommonROProperty( {0} ) on '{1}' encountered an exception: {2}", key, this.Name, arg);
            }
            return(result);
        }
예제 #2
0
        // Token: 0x060001AE RID: 430 RVA: 0x00007A98 File Offset: 0x00005C98
        public MyType GetPrivateProperty <MyType>(string key)
        {
            MyType result = default(MyType);

            try
            {
                using (AmClusterRawData networkControlData = this.GetNetworkControlData(AmClusterNetworkControlCode.CLUSCTL_NETWORK_GET_PRIVATE_PROPERTIES))
                {
                    AmClusterPropList amClusterPropList = new AmClusterPropList(networkControlData.Buffer, networkControlData.Size);
                    result = amClusterPropList.Read <MyType>(key);
                }
            }
            catch (ClusterApiException arg)
            {
                AmClusterNetwork.Tracer.TraceDebug <string, string, ClusterApiException>((long)this.GetHashCode(), "GetPrivateProperty( {0} ) on '{1}' encountered an exception: {2}", key, this.Name, arg);
            }
            return(result);
        }