Exemplo n.º 1
0
        private static void SdkInitialize()
        {
            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "initialize".ToLower()),
                new ToastCoreInitializeAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "GetUserId".ToLower()),
                new ToastCoreGetUserIdAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "SetUserId".ToLower()),
                new ToastCoreSetUserIdAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "IsDebugMode".ToLower()),
                new ToastCoreIsDebugModeAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "SetDebugMode".ToLower()),
                new ToastCoreSetDebugModeAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "SetOptionalPolicies".ToLower()),
                new ToastCoreSetOptionalPolicies());
        }
        private static void SdkInitialize()
        {
            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "initialize".ToLower()),
                new ToastInstanceLoggerInitializeAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "Log".ToLower()),
                new ToastInstanceLoggerLogAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "SetUserField".ToLower()),
                new ToastInstanceLLoggerSetUserFiledAction());
        }
Exemplo n.º 3
0
        private static void SdkInitialize()
        {
            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "initialize".ToLower()),
                new ToastLoggerInitializeAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "Log".ToLower()),
                new ToastLoggerLogAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "SetUserField".ToLower()),
                new ToastLoggerSetUserFieldAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "Exception".ToLower()),
                new ToastLoggerReportAction());

            ToastActionHandler.RegisterAction(
                ToastUri.Create(SERVICE_NAME, "SetLoggerListener".ToLower()),
                new ToastLoggerSetLoggerListenerAction());
        }