Exemple #1
0
    public async Task <bool> SaveAsset()
    {
        ConfigForm.KeyPemPath = "%StreamAsset%/" + "key.pem";
        var cfForm = new CfServerSetting();

        cfForm.CredService = ConfigForm;
        ConfigContainer.CreateCfFile(ConfigPath.StreamingAsset, cfForm);
        string[] tpath = { ConfigPath.StreamingAsset, "key.pem" };

        File.WriteAllText(
            Path.Combine(tpath),
            file);

        return(true);
    }