Ejemplo n.º 1
0
        private void SetRealmConnection()
        {
            syncService = SyncServiceFactory.CreateUsingSignalR(
                GetRealm,
                new Uri(hostUrl + "/Realmius" + (needAuthorisation
                            ? "?userLogin="******"&pass=" + CurrentUser.Password
                            : null)),
                TypesToSync);

            syncService.Logger = _logger;

            //InitStartData();
        }
Ejemplo n.º 2
0
        protected internal virtual IRealmiusSyncService CreateSyncService()
        {
            var clientId = clientID.Text;

            var syncService = SyncServiceFactory.CreateUsingSignalR(
                GetRealm,
                new Uri(_serverUrl + $"/Realmius?clientId={clientId}"),
                new[]
            {
                typeof(Message)
            });

            return(syncService);
        }