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

            syncService.Logger = _logger;

            //InitStartData();
        }
Exemple #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);
        }