/// <summary> /// Initializes a new instance of the <see cref="BlogController" /> class. /// </summary> /// <param name="blogRepository">The blog post repository.</param> /// <param name="commentRepository">The Disqus comment repository</param> /// <param name="urlShortener">The URL shortener</param> /// <param name="socialManager">The social network manager used to get sharing URLs</param> public BlogController(IBlogRepository blogRepository, IDisqusCommentRepository commentRepository, IUrlShortener urlShortener, ISocialManager socialManager) { _blogRepository = blogRepository; _commentRepository = commentRepository; _urlShortener = urlShortener; _socialManager = socialManager; }
/// <summary> /// Initializes a new instance of the <see cref="BlogController" /> class. /// </summary> /// <param name="blogRepository">The blog post repository.</param> /// <param name="commentRepository">The Disqus comment repository</param> /// <param name="urlShortener">The URL shortener</param> /// <param name="socialManager">The social network manager used to get sharing URLs</param> /// <param name="siteConfig">Site configuration</param> public BlogController(IBlogRepository blogRepository, IDisqusCommentRepository commentRepository, IUrlShortener urlShortener, ISocialManager socialManager, ISiteConfiguration siteConfig) { _blogRepository = blogRepository; _commentRepository = commentRepository; _urlShortener = urlShortener; _socialManager = socialManager; _siteConfig = siteConfig; _profiler = MiniProfiler.Current; }
public BusinessesController(ApplicationDbContext context, IBusinessManager businessManager, ISocialManager socialManager, UserManager <ApplicationUser> userManager , IBusinessMenuManager businessMenuManager) { _context = context; _businessManager = businessManager; _socialManager = socialManager; _userManager = userManager; _businessMenuManager = businessMenuManager; }
/// <summary> /// Used by tests to reset the state of the SocialManager. /// </summary> internal static void Reset() { foreach (XboxLiveUser user in Instance.LocalUsers.ToList()) { Instance.RemoveLocalUser(user); } instance = null; }
/// <summary> /// Initializes a new instance of the <see cref="SocialShareUpdater" /> class. /// </summary> /// <param name="socialManager">The social manager.</param> /// <param name="blogRepository">The blog repository.</param> public SocialShareUpdater( ISocialManager socialManager, IBlogRepository blogRepository, HttpClient client, ILogger <SocialShareUpdater> logger ) { _socialManager = socialManager; _blogRepository = blogRepository; _client = client; _logger = logger; }
private void Awake() { foreach (var mb in BeforeAwake) { mb.SendMessage("BeforeAwake", this); } if (XBoxEnableDataPlatformPlugin) { DataPlatformPlugin.InitializePlugin(0); } if (XBoxEnableStorageManager) { StorageManager.Create(); } if (XBoxEnableAchievementsManager) { AchievementsManager.Create(); } if (XBoxEnableConsoleUtilsManager) { ConsoleUtilsManager.Create(); } if (XBoxEnableUsersManager) { UsersManager.Create(); } if (XBoxEnableStatisticsManager) { StatisticsManager.Create(); } _manager = XBoxManager = new XBoxSocialManager(); XBoxManager.Start(Data, XBoxConnectedStorageContainerName, XBoxConnectedStorageBlobName, XBoxConnectedStorageBlobSize, this, XBoxEnableDebug, AchievementUpgradeStrategy ); InvokeRepeating("XboxSaveProgress", XBoxSaveProgressToConnectedStorageInSeconds, XBoxSaveProgressToConnectedStorageInSeconds); foreach (var mb in AfterAwake) { mb.SendMessage("AfterAwake", this); } }
/// <summary> /// Awake is called when the script instance is being loaded /// </summary> private void Awake() { this.manager = XboxLive.Instance.SocialManager; }
/// <summary> /// Initializes a new instance of the <see cref="SocialShareUpdater" /> class. /// </summary> /// <param name="socialManager">The social manager.</param> /// <param name="blogRepository">The blog repository.</param> public SocialShareUpdater(ISocialManager socialManager, IBlogRepository blogRepository) { _socialManager = socialManager; _blogRepository = blogRepository; }
public SocialController(ISocialManager manager) { _manager = manager; }
protected override void CreateManagers() { base.CreateManagers(); this.SocialManager = this.CreateSocialManager(); }
/// <summary> /// Initializes a new instance of the <see cref="SocialShareUpdater" /> class. /// </summary> /// <param name="socialManager">The social manager.</param> /// <param name="blogRepository">The blog repository.</param> public SocialShareUpdater(ISocialManager socialManager, IBlogRepository blogRepository, HttpClient client) { _socialManager = socialManager; _blogRepository = blogRepository; _client = client; }
/// <summary> /// Initializes a new instance of the <see cref="SocialController" /> class. /// </summary> /// <param name="socialManager">The social manager.</param> /// <param name="blogRepository">The blog repository.</param> /// <param name="urlShortener">The URL shortener.</param> public SocialController(ISocialManager socialManager, IBlogRepository blogRepository, IUrlShortener urlShortener) { _socialManager = socialManager; _blogRepository = blogRepository; _urlShortener = urlShortener; }
public BistroDetailsController(ApplicationDbContext context, IBusinessManager businessManager, ISocialManager socialManager) { _context = context; _businessManager = businessManager; _socialManager = socialManager; }
/// <summary> /// Awake is called when the script instance is being loaded /// </summary> private void Awake() { this.manager = SocialManager.Instance; }
public SocialMediaController(ISocialStatistics statisticsManager, TwitterManager twitterManager, ILogger <SocialMediaController> logger) { _twitterManager = twitterManager; _logger = logger; _statisticsManager = statisticsManager; }