示例#1
0
        public virtual void StartReplicationSyncWithFacebookLogin(string accessToken, string
                                                                  email)
        {
            Authenticator facebookAuthenticator = AuthenticatorFactory.CreateFacebookAuthenticator
                                                      (accessToken);

            Replication[] replications = CreateReplications();
            Replication   pullRep      = replications[0];
            Replication   pushRep      = replications[1];

            pullRep.SetAuthenticator(facebookAuthenticator);
            pushRep.SetAuthenticator(facebookAuthenticator);
            pullRep.Start();
            pushRep.Start();
            Log.V(Tag, "Start Replication Sync ...");
        }