コード例 #1
0
        public ActivityViewModelQuery(
            IDocumentSession documentSession,
            ISightingViewFactory sightingViewFactory,
            ISightingNoteViewFactory sightingNoteViewFactory,
            IIdentificationViewFactory identificationViewFactory,
            IPostViewFactory postViewFactory,
            IUserContext userContext,
            IUserViewFactory userViewFactory)
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(sightingViewFactory, "sightingViewFactory");
            Check.RequireNotNull(sightingNoteViewFactory, "sightingNoteViewFactory");
            Check.RequireNotNull(identificationViewFactory, "identificationViewFactory");
            Check.RequireNotNull(postViewFactory, "postViewFactory");
            Check.RequireNotNull(userContext, "userContext");
            Check.RequireNotNull(userViewFactory, "userViewFactory");

            _documentSession = documentSession;
            _sightingViewFactory = sightingViewFactory;
            _sightingNoteViewFactory = sightingNoteViewFactory;
            _identificationViewFactory = identificationViewFactory;
            _postViewFactory = postViewFactory;
            _userContext = userContext;
            _userViewFactory = userViewFactory;
        }
コード例 #2
0
        public SightingNoteViewFactory(
            IUserViewFactory userViewFactory)
        {
            Check.RequireNotNull(userViewFactory, "userViewFactory");

            _userViewFactory = userViewFactory;
        }
コード例 #3
0
        public SightingNoteViewFactory(
            IUserViewFactory userViewFactory)
        {
            Check.RequireNotNull(userViewFactory, "userViewFactory");

            _userViewFactory = userViewFactory;
        }
コード例 #4
0
        public AccountController(
            IMessageBus messageBus,
            IUserContext userContext,
            IDocumentSession documentSession,
            IUserViewModelQuery userViewModelQuery,
            IActivityViewModelQuery activityViewModelQuery,
            IUserViewFactory userViewFactory,
            IPermissionManager permissionManager,
            IDateTimeZoneService dateTimeZoneService
            )
        {
            Check.RequireNotNull(messageBus, "messageBus");
            Check.RequireNotNull(userContext, "userContext");
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(userViewModelQuery, "userViewModelQuery");
            Check.RequireNotNull(activityViewModelQuery, "activityViewModelQuery");
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(permissionManager, "permissionManager");
            Check.RequireNotNull(dateTimeZoneService, "dateTimeZoneService");

            _messageBus             = messageBus;
            _userContext            = userContext;
            _documentSession        = documentSession;
            _userViewModelQuery     = userViewModelQuery;
            _activityViewModelQuery = activityViewModelQuery;
            _userViewFactory        = userViewFactory;
            _permissionManager      = permissionManager;
            _dateTimeZoneService    = dateTimeZoneService;
        }
コード例 #5
0
        public ActivityViewModelQuery(
            IDocumentSession documentSession,
            ISightingViewFactory sightingViewFactory,
            ISightingNoteViewFactory sightingNoteViewFactory,
            IIdentificationViewFactory identificationViewFactory,
            IPostViewFactory postViewFactory,
            IUserContext userContext,
            IUserViewFactory userViewFactory)
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(sightingViewFactory, "sightingViewFactory");
            Check.RequireNotNull(sightingNoteViewFactory, "sightingNoteViewFactory");
            Check.RequireNotNull(identificationViewFactory, "identificationViewFactory");
            Check.RequireNotNull(postViewFactory, "postViewFactory");
            Check.RequireNotNull(userContext, "userContext");
            Check.RequireNotNull(userViewFactory, "userViewFactory");

            _documentSession           = documentSession;
            _sightingViewFactory       = sightingViewFactory;
            _sightingNoteViewFactory   = sightingNoteViewFactory;
            _identificationViewFactory = identificationViewFactory;
            _postViewFactory           = postViewFactory;
            _userContext     = userContext;
            _userViewFactory = userViewFactory;
        }
コード例 #6
0
        public IdentificationViewFactory(
            IUserViewFactory userViewFactory)
        {
            Check.RequireNotNull(userViewFactory, "userViewFactory");

            _userViewFactory = userViewFactory;
        }
コード例 #7
0
ファイル: GroupHub.cs プロジェクト: Bowerbird/bowerbird-web
        public GroupHub(
            IUserViewFactory userViewFactory,
            IDocumentSession documentSession)
        {
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(documentSession, "documentSession");

            _userViewFactory = userViewFactory;
            _documentSession = documentSession;
        }
コード例 #8
0
ファイル: GroupHub.cs プロジェクト: weedkiller/bowerbird-web
        public GroupHub(
            IUserViewFactory userViewFactory,
            IDocumentSession documentSession)
        {
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(documentSession, "documentSession");

            _userViewFactory = userViewFactory;
            _documentSession = documentSession;
        }
コード例 #9
0
        public PostViewFactory(
            IUserViewFactory userViewFactory,
            IGroupViewFactory groupViewFactory
            )
        {
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(groupViewFactory, "groupViewFactory");

            _userViewFactory  = userViewFactory;
            _groupViewFactory = groupViewFactory;
        }
コード例 #10
0
        public SightingViewFactory(
            IUserViewFactory userViewFactory,
            IGroupViewFactory groupViewFactory,
            IMediaResourceViewFactory mediaResourceViewFactory,
            IUserContext userContext)
        {
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(groupViewFactory, "groupViewFactory");
            Check.RequireNotNull(mediaResourceViewFactory, "mediaResourceViewFactory");
            Check.RequireNotNull(userContext, "userContext");

            _userViewFactory          = userViewFactory;
            _groupViewFactory         = groupViewFactory;
            _mediaResourceViewFactory = mediaResourceViewFactory;
            _userContext = userContext;
        }
コード例 #11
0
        public ActivityUserJoinedGroup(
            IDocumentSession documentSession,
            IGroupViewFactory groupViewFactory,
            IUserViewFactory userViewFactory,
            IBackChannelService backChannelService
            )
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(groupViewFactory, "groupViewFactory");
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(backChannelService, "backChannelService");

            _documentSession    = documentSession;
            _groupViewFactory   = groupViewFactory;
            _userViewFactory    = userViewFactory;
            _backChannelService = backChannelService;
        }
コード例 #12
0
ファイル: UserHub.cs プロジェクト: weedkiller/bowerbird-web
        public UserHub(
            IDocumentSession documentSession,
            IUserViewFactory userViewFactory,
            IBackChannelService backChannelService,
            IOnlineUserCache onlineUserCache)

        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(backChannelService, "backChannelService");
            Check.RequireNotNull(onlineUserCache, "onlineUserCache");

            _documentSession    = documentSession;
            _userViewFactory    = userViewFactory;
            _backChannelService = backChannelService;
            _onlineUserCache    = onlineUserCache;
        }
コード例 #13
0
        public PostViewModelQuery(
            IDocumentSession documentSession,
            IUserViewFactory userViewFactory,
            IPostViewFactory postViewFactory,
            IUserContext userContext
            )
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(postViewFactory, "postViewFactory");
            Check.RequireNotNull(userContext, "userContext");

            _documentSession = documentSession;
            _userViewFactory = userViewFactory;
            _postViewFactory = postViewFactory;
            _userContext     = userContext;
        }
コード例 #14
0
        public OrganisationViewModelQuery(
            IDocumentSession documentSession,
            IMediaResourceFactory mediaResourceFactory,
            IUserViewFactory userViewFactory,
            IGroupViewFactory groupViewFactory,
            IUserContext userContext)
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(mediaResourceFactory, "mediaResourceFactory");
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(groupViewFactory, "groupViewFactory");
            Check.RequireNotNull(userContext, "userContext");

            _documentSession      = documentSession;
            _mediaResourceFactory = mediaResourceFactory;
            _userViewFactory      = userViewFactory;
            _groupViewFactory     = groupViewFactory;
            _userContext          = userContext;
        }
コード例 #15
0
        public UserViewModelQuery(
            IDocumentSession documentSession,
            IUserViewFactory userViewFactory,
            IGroupViewFactory groupViewFactory,
            IUserContext userContext,
            IDateTimeZoneService dateTimeZoneService,
            IOnlineUserCache onlineUserCache)
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(groupViewFactory, "groupViewFactory");
            Check.RequireNotNull(userContext, "userContext");
            Check.RequireNotNull(dateTimeZoneService, "dateTimeZoneService");
            Check.RequireNotNull(onlineUserCache, "onlineUserCache");

            _documentSession     = documentSession;
            _userViewFactory     = userViewFactory;
            _groupViewFactory    = groupViewFactory;
            _userContext         = userContext;
            _dateTimeZoneService = dateTimeZoneService;
            _onlineUserCache     = onlineUserCache;
        }
コード例 #16
0
        public UserViewModelQuery(
            IDocumentSession documentSession,
            IUserViewFactory userViewFactory,
            IGroupViewFactory groupViewFactory,
            IUserContext userContext,
            IDateTimeZoneService dateTimeZoneService,
            IOnlineUserCache onlineUserCache)
        {
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(groupViewFactory, "groupViewFactory");
            Check.RequireNotNull(userContext, "userContext");
            Check.RequireNotNull(dateTimeZoneService, "dateTimeZoneService");
            Check.RequireNotNull(onlineUserCache, "onlineUserCache");

            _documentSession = documentSession;
            _userViewFactory = userViewFactory;
            _groupViewFactory = groupViewFactory;
            _userContext = userContext;
            _dateTimeZoneService = dateTimeZoneService;
            _onlineUserCache = onlineUserCache;
        }
コード例 #17
0
        public ChatHub(
            IUserViewFactory userViewFactory,
            IGroupViewFactory groupViewFactory,
            IDocumentSession documentSession,
            IMessageBus messageBus,
            IPermissionManager permissionManager,
            IOnlineUserCache onlineUserCache)
        {
            Check.RequireNotNull(userViewFactory, "userViewFactory");
            Check.RequireNotNull(groupViewFactory, "groupViewFactory");
            Check.RequireNotNull(documentSession, "documentSession");
            Check.RequireNotNull(messageBus, "messageBus");
            Check.RequireNotNull(permissionManager, "permissionManager");
            Check.RequireNotNull(onlineUserCache, "onlineUserCache");

            _userViewFactory   = userViewFactory;
            _groupViewFactory  = groupViewFactory;
            _documentSession   = documentSession;
            _messageBus        = messageBus;
            _permissionManager = permissionManager;
            _onlineUserCache   = onlineUserCache;
        }