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

            if (setup != null)
            {
                builder = setup(builder);
            }
            return(builder.Build());
        }
Exemplo n.º 2
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());
        }