protected void Application_Start() { AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); var cfg = new Config(); var factory = new SharepointClientFactory(cfg); var inFileDataStorage = new FileDataStorage(); System.Globalization.CultureInfo.DefaultThreadCurrentCulture = System.Globalization.CultureInfo.CurrentCulture; System.Globalization.CultureInfo.DefaultThreadCurrentUICulture = System.Globalization.CultureInfo.CurrentUICulture; // var sw = Stopwatch.StartNew(); // var sync = new DataStorageUpdater(inFileDataStorage, factory, new ConfluenceClient(new Config())); // sync.Update(); // sw.Stop(); // var elapsed = sw.ElapsedMilliseconds; Debug.WriteLine(""); }
public static SharepointClientFactory GetSharepointClientFactory() { var config = new Config(); return new SharepointClientFactory(config); }