void ReleaseDesignerOutlets()
        {
            if (EncryptionServerEncryptionKey != null)
            {
                EncryptionServerEncryptionKey.Dispose();
                EncryptionServerEncryptionKey = null;
            }

            if (EncryptionUseEncryptedProtocol != null)
            {
                EncryptionUseEncryptedProtocol.Dispose();
                EncryptionUseEncryptedProtocol = null;
            }

            if (FeaturesFileOutputs != null)
            {
                FeaturesFileOutputs.Dispose();
                FeaturesFileOutputs = null;
            }

            if (FeaturesFileOutputsPath != null)
            {
                FeaturesFileOutputsPath.Dispose();
                FeaturesFileOutputsPath = null;
            }

            if (FeaturesNotifications != null)
            {
                FeaturesNotifications.Dispose();
                FeaturesNotifications = null;
            }

            if (FeaturesWirecastManipulation != null)
            {
                FeaturesWirecastManipulation.Dispose();
                FeaturesWirecastManipulation = null;
            }

            if (ServerAddress != null)
            {
                ServerAddress.Dispose();
                ServerAddress = null;
            }

            if (ServerPassword != null)
            {
                ServerPassword.Dispose();
                ServerPassword = null;
            }

            if (ServerPort != null)
            {
                ServerPort.Dispose();
                ServerPort = null;
            }

            if (ServerUsername != null)
            {
                ServerUsername.Dispose();
                ServerUsername = null;
            }
        }
Пример #2
0
 public static bool ValidatePassword(string plaintext)
 {
     return(ServerPassword.SequenceEqual(HashPassword(plaintext)));
 }