2017-11-17 9 views

답변

0

사용자를 로그인/등록하고 동기화 된 영역을 열어야합니다. 같은 뭔가 : 자세한 내용은

// pass createUser: true to register rather than login 
var credentials = Credentials.UsernamePassword("[email protected]", "super-secure", createUser: false); 

// Login the user 
var user = await User.LoginAsync(credentials, new Uri("http://192.168.100.61:9080")); 

// Create a sync configuration for the Realm 
// Notice the URL uses the realm scheme and not http 
var config = new SyncConfiguration(user, new Uri("realm://192.168.100.61:9080/~/myrealm")); 

// Finally, get the Realm instance 
// This Realm will be kept in sync with the remote one 
var realm = Realm.GetInstance(config); 

documentation을 확인하십시오.