Ejemplo n.º 1
0
        public object RegisterDevice(string token, DeviceType type)
        {
            UsageData.SetIsMobileAppUser(SecurityContext.CurrentAccount.ID, type);

            using (var pushClient = new PushServiceClient())
            {
                string regid = pushClient.RegisterDevice(
                    CoreContext.TenantManager.GetCurrentTenant().TenantId,
                    SecurityContext.CurrentAccount.ID.ToString(),
                    token,
                    type);

                return(new { regid });
            }
        }
Ejemplo n.º 2
0
        public object RegisterDevice(string token, DeviceType type)
        {
            UsageData.SetIsMobileAppUser(SecurityContext.CurrentAccount.ID, type);

            using (var pushClient = new PushServiceClient())
            {
                string regid = pushClient.RegisterDevice(
                    CoreContext.TenantManager.GetCurrentTenant().TenantId,
                    SecurityContext.CurrentAccount.ID.ToString(),
                    token,
                    type);

                return new {regid};
            }
        }