public UserController()
        {
            var container = SServiceLocator.CreateContainer();

            ConfigureContainer(ref container);
            _userDataProvider = container.Resolve <ICUserInfoDataProvider>();
        }
 public CChatDataProviderTest()
 {
     var container = SServiceLocator.CreateContainer();
     container.Register<ICChatInfoDataProvider, CChatInfoDataProvider>(ELifeCycle.Transient);
     container.Register<CDataStorageSettings>(ELifeCycle.Transient);
     _chatDataProvider = container.Resolve<ICChatInfoDataProvider>();
 }
Beispiel #3
0
        public MaintenanceController()
        {
            var container = SServiceLocator.CreateContainer();

            container.Register <ICUserInfoDataProvider, CUserInfoDataProvider>(ELifeCycle.Transient);
            container.Register <DataStorage.CDataStorageSettings>(ELifeCycle.Transient);
            _userDataProvider = container.Resolve <ICUserInfoDataProvider>();
        }
Beispiel #4
0
        static SUpdateUsersStatusActivity()
        {
            var container = SServiceLocator.CreateContainer();

            container.Register <ICUserInfoDataProvider, CUserInfoDataProvider>(ELifeCycle.Transient);
            container.Register <DataStorage.CDataStorageSettings>(ELifeCycle.Transient);
            s_userDataProvider = container.Resolve <ICUserInfoDataProvider>();
        }
Beispiel #5
0
        public ChatController()
        {
            var container = SServiceLocator.CreateContainer();

            ConfigureContainer(ref container);
            _messageInChatDataProvider = container.Resolve <ICMessageInChatInfoDataProvider>();
            _messageDataProvider       = container.Resolve <ICMessageInfoDataProvider>();
            _userDataProvider          = container.Resolve <ICUserInfoDataProvider>();
        }
Beispiel #6
0
        static SUpdateUsersStatusActivity()
        {
            var container = SServiceLocator.CreateContainer();

            container.Register <HttpClient>(ELifeCycle.Transient);

            s_client = container.Resolve <HttpClient>();

            String maintenanceServiceBaseAddress = "http://localhost:9000/";

            s_client.BaseAddress = new Uri(maintenanceServiceBaseAddress);
            s_client.DefaultRequestHeaders.Accept.Clear();
            s_client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json"));
        }