public TimeTreeServiceFactory( IGraphClientFactory graphClientFactory, TimeTreeConfiguration defaultConfiguration) { _graphClientFactory = graphClientFactory; _defaultConfiguration = defaultConfiguration; }
public TimeTreeService(IGraphClient graphClient, TimeTreeConfiguration configuration) { _graphClient = graphClient; _configuration = configuration; }
public ITimeTreeService Create(TimeTreeConfiguration configuration = null) { return(new TimeTreeService(_graphClientFactory.Create(), configuration ?? _defaultConfiguration)); }