Exemple #1
0
        /// <summary>
        /// Creates a new LIFX client.
        /// </summary>
        /// <returns>client</returns>
        public static Task <LifxClient> CreateAsync()
        {
            LifxClient client = new LifxClient();

            client.Initialize();
            return(Task.FromResult(client));
        }
Exemple #2
0
        /// <summary>
        /// Creates a new LIFX client.
        /// </summary>
        /// <returns>client</returns>
        public static Task <LifxClient> CreateAsync(ILogger logger)
        {
            LifxClient client = new LifxClient(new ConversationClient(logger), logger);

            client.Initialize();
            return(Task.FromResult(client));
        }