// Nebulaサービス初期化 public static void InitNebula(NbService service = null, int no = 0) { try { service = service ?? NbService.Singleton; } catch (NullReferenceException) { // CommonITでNbServiceをDisposeしているので、 // フェールセーフ処理を入れておく service = NbService.GetInstance(); } service.EndpointUrl = TestConfig.NebulaEndpointUrl; service.DisableOffline(); // for MultiTenant /* * if (1 == no) * { * service.TenantId = TenantId2; * service.AppId = AppId2; * service.AppKey = AppKey2; * } * else * { */ service.TenantId = TestConfig.TenantId; service.AppId = TestConfig.AppId; service.AppKey = TestConfig.AppKey; //} }
// Nebulaサービス初期化(クライアントPush無効アプリ) public static void InitNebulaForPushDisabled() { NbService service = null; service = NbService.Singleton; service.EndpointUrl = TestConfig.NebulaEndpointUrl; service.DisableOffline(); service.TenantId = TestConfig.TenantId; service.AppId = TestConfig.AppIdForPushDisabled; service.AppKey = TestConfig.AppKeyForPushDisabled; }