internal VirtualDirectoryHubClientTwoWayComm()
        {
            _connection = new HubConnectionBuilder()
                          .WithUrl(DemoUrlConstants.LocalHostUrl + DemoUrlConstants.VirtualDirectoryHubEndpoint)
                          .WithAutomaticReconnect()
                          .Build();

            _connection.On <File>(nameof(InvokeCreateFile), InvokeCreateFile);
            _connection.On <File>(nameof(InvokeUpdateFile), InvokeUpdateFile);
            _connection.On <File>(nameof(InvokeDeleteFile), InvokeDeleteFile);
            _connection.On <Folder>(nameof(InvokeCreateFolder), InvokeCreateFolder);
            _connection.On <Folder>(nameof(InvokeUpdateFolder), InvokeUpdateFolder);
            _connection.On <Folder>(nameof(InvokeDeleteFolder), InvokeDeleteFolder);

            ServerHubProxy = new ServerHubProxyImp(_connection);
        }
        public OrgaSHubClientTwoWayComm(string serverHubUrl)
        {
            _serverConnection = new HubConnectionBuilder()
                                .WithUrl(serverHubUrl)
                                .WithAutomaticReconnect()
                                .Build();

            _serverConnection.On <JobRole>(nameof(InvokeCreateJobRole), InvokeCreateJobRole);
            _serverConnection.On <JobRole>(nameof(InvokeUpdateJobRole), InvokeUpdateJobRole);
            _serverConnection.On <JobRole>(nameof(InvokeDeleteJobRole), InvokeDeleteJobRole);
            _serverConnection.On <Employee>(nameof(InvokeCreateEmployee), InvokeCreateEmployee);
            _serverConnection.On <Employee>(nameof(InvokeUpdateEmployee), InvokeUpdateEmployee);
            _serverConnection.On <Employee>(nameof(InvokeDeleteEmployee), InvokeDeleteEmployee);
            _serverConnection.On <Organisation>(nameof(InvokeLoadOrganisation), InvokeLoadOrganisation);

            ServerHubProxy = new ServerHubProxyImp(_serverConnection);
        }