Skip to content

The name 'ParseCloud' does not exist in the current context #361

Closed
@hhgz9527

Description

@hhgz9527

SDK Version: 2.0.0
Parse Server version: 4.5.0
Local or remote host: Local

Use in Unity.

I can use await client.SignUpAsync(username: "Test", password: "Test"); to sign up success in parse,

but i use cloud code, always show me this error: The name 'ParseCloud' does not exist in the current context

I searched every possible keyword, but no solution was found.

Could you please tell me how to solve this problem, Thanks!

        void Start()
	{
		new ParseClient("x", "http://localhost:1337/api", "x"
		,
		new LateInitializedMutableServiceHub { },
		new MetadataMutator
		{
			EnvironmentData = new EnvironmentData { OSVersion = SystemInfo.operatingSystem, Platform = $"Unity {Application.unityVersion} on {SystemInfo.operatingSystemFamily}", TimeZone = TimeZoneInfo.Local.StandardName },
			HostManifestData = new HostManifestData { Name = Application.productName, Identifier = Application.productName, ShortVersion = Application.version, Version = Application.version }
		}
		).Publicize();
	}


	public async void fetchGuideInfoAction()
	{
		IDictionary<string, object> dictionary = new Dictionary<string, object>
		{
			{ "name", "test" }
		};

		ParseCloud.CallFunctionAsync<float>("fetchGuideInfo", dictionary).ContinueWith(t =>
		{
			var result = t.Result;
			Debug.Log(result);
		});
	}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions