Exemple #1
0
 /// <inheritdoc />
 protected override INetFwOpenPort InternalItem(FirewallLegacyPortCollectionKey key)
 {
     try
     {
         return(NativeEnumerable.Item(key.PortNumber, key.ProtocolType));
     }
     catch (FileNotFoundException)
     {
         return(null);
     }
 }
 /// <inheritdoc />
 protected override INetFwService InternalItem(NET_FW_SERVICE_TYPE key)
 {
     try
     {
         return(NativeEnumerable.Item(key));
     }
     catch (FileNotFoundException)
     {
         return(null);
     }
 }
Exemple #3
0
 /// <inheritdoc />
 protected override INetFwProduct InternalItem(int key)
 {
     try
     {
         return(NativeEnumerable.Item(key));
     }
     catch (FileNotFoundException)
     {
         return(null);
     }
 }
Exemple #4
0
 /// <inheritdoc />
 protected override INetFwAuthorizedApplication InternalItem(string key)
 {
     try
     {
         return(NativeEnumerable.Item(key));
     }
     catch (FileNotFoundException)
     {
         return(null);
     }
 }
 /// <inheritdoc />
 protected override INetFwProduct InternalItem(int key)
 {
     return(NativeEnumerable.Item(key));
 }
 /// <inheritdoc />
 protected override INetFwRule InternalItem(string key)
 {
     return(NativeEnumerable.Item(key));
 }
 /// <inheritdoc />
 protected override INetFwAuthorizedApplication InternalItem(string key)
 {
     return(NativeEnumerable.Item(key));
 }
 /// <inheritdoc />
 protected override INetFwService InternalItem(NetFwServiceType key)
 {
     return(NativeEnumerable.Item(key));
 }
Exemple #9
0
 /// <inheritdoc />
 protected override INetFwService InternalItem(NET_FW_SERVICE_TYPE key)
 {
     return(NativeEnumerable.Item(key));
 }
 /// <inheritdoc />
 protected override INetFwOpenPort InternalItem(FirewallLegacyPortCollectionKey key)
 {
     return(NativeEnumerable.Item(key.PortNumber, key.ProtocolType));
 }