Пример #1
0
 public void StartUp()
 {
     _asanaOAuth        = new AsanaOAuthService(_restClient, _parameters);
     _communicator      = new AsanaCommunicatorService(_asanaOAuth, _restClient);
     _asanaUsersService = new Users(_communicator, _parameters);
 }
Пример #2
0
 public AuthenticationController(IAsanaOAuth asanaOAuth, IHubLoggerService loggerService)
 {
     //we don`t need whole client here, so i can use only AsanaOAuth service
     _asanaOAuth    = asanaOAuth;
     _loggerService = loggerService;
 }
 public AsanaCommunicatorService(IAsanaOAuth oauth, IRestfulServiceClient client)
 {
     OAuthService   = oauth;
     _restfulClient = client;
 }
 public async Task Start()
 {
     this._asanaOAuth = await new AsanaOAuthService(_restClient, _parameters).InitializeAsync(new OAuthToken());
 }