Ejemplo n.º 1
0
        private static ClientOptions CreateClientOptions(AppLifecycleManagerClient.ServiceBinder serviceBinder, Func <ClientOptionsBuilder, ClientOptionsBuilder> setup = null)
        {
            ClientOptionsBuilder builder = new ClientOptionsBuilder().WithApplicationId(Id).WithDefaultConfiguration();

            serviceBinder.Bind(builder);
            if (setup != null)
            {
                builder = setup(builder);
            }
            return(builder.Build());
        }
Ejemplo n.º 2
0
 public AppLifecycleManagerClient(AppLifecycleManagerClient.ServiceBinder serviceBinder, Func <ClientOptionsBuilder, ClientOptionsBuilder> setup = null) : base(CreateClientOptions(serviceBinder, setup))
 {
     AppLauncherService = new AppLifecycleManagerClient.AppLauncherServiceProxy(this.CallInvoker);
 }